摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1 { class Program { delegate double ProcessDelegate(double p... 阅读全文
posted @ 2017-01-28 17:32 xiejunzhao 阅读(182) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System... 阅读全文
posted @ 2017-01-28 17:32 xiejunzhao 阅读(1100) 评论(0) 推荐(0)
摘要: 项目需要,经常需要手动调整图片尺寸,流程太过麻烦,效率低下。所以写了一个小程序,以提高工作效率using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using System.Drawing;using... 阅读全文
posted @ 2017-01-28 17:24 xiejunzhao 阅读(2798) 评论(0) 推荐(0)
摘要: 项目需要,经常需要手动压缩图片,流程太过麻烦,效率低下。所以写了一个小程序,以提高工作效率using System;using System.Net;using System.Text;using System.IO;class Program{ static void Main() { Console.WriteLine("请输入TinyPng.com的API KEY,... 阅读全文
posted @ 2017-01-28 17:23 xiejunzhao 阅读(1259) 评论(0) 推荐(0)
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.创建一个新结点,同时遍历两个链表,取较小的一个添加到新结点后面。最后再把剩下的节点加到链表后面public class... 阅读全文
posted @ 2017-01-23 23:36 xiejunzhao 阅读(176) 评论(0) 推荐(0)
摘要: Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly since it i... 阅读全文
posted @ 2017-01-19 23:30 xiejunzhao 阅读(170) 评论(0) 推荐(0)
摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.For example, these are arithmetic sequence:1,... 阅读全文
posted @ 2017-01-18 23:52 xiejunzhao 阅读(122) 评论(0) 推荐(0)
摘要: Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules:You receive a va... 阅读全文
posted @ 2017-01-17 23:14 xiejunzhao 阅读(119) 评论(0) 推荐(0)
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.Example:For num = 5 you sho... 阅读全文
posted @ 2017-01-16 22:11 xiejunzhao 阅读(121) 评论(0) 推荐(0)
摘要: Given a binary array, find the maximum number of consecutive 1s in this array.Example 1:Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutive 1s. ... 阅读全文
posted @ 2017-01-15 17:43 xiejunzhao 阅读(344) 评论(0) 推荐(0)