2016年3月21日
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2016-03-21 20:18 狂奔的蜗牛163 阅读(196) 评论(0) 推荐(0) 编辑
摘要: // 数据类型? 表示参数的值可以为null空,此时这个参数可调用属性hasvalue来判断,此参数是否有除了null以外的值;进而进行其它的工作 //必须要加?才可用hasvalue属性 private int? x = null; //或者写成private int? x 一个作用 private void Form1_Load(object sender, Event... 阅读全文
posted @ 2016-03-21 18:50 狂奔的蜗牛163 阅读(2278) 评论(0) 推荐(0) 编辑
  2016年3月18日
摘要: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except  阅读全文
posted @ 2016-03-18 21:18 狂奔的蜗牛163 阅读(404) 评论(0) 推荐(0) 编辑
  2016年3月17日
摘要: TeeChart控件就不多介绍了,很多朋友不知道开始怎么注册使用,尤其是在64位系统下如何注册的问题,具体如下: win7、win8 64位系统问题所在: 64位的系统一般都是可以安装32位程序的 执行C:WindowsSysWOW64regsvr32.exe,而不是C:WindowsSystem3 阅读全文
posted @ 2016-03-17 16:52 狂奔的蜗牛163 阅读(5711) 评论(0) 推荐(0) 编辑
  2016年3月14日
摘要: 该题用到了.NET 3.5在System.Collections.Generic命名空间中包含一个新的集合类:HashSet<T>的Add()方法,详细信息请看转载:C# HashSet 用法。   题目: Given an array of integers and an integer k, f 阅读全文
posted @ 2016-03-14 20:13 狂奔的蜗牛163 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/xiaopin/archive/2011/01/08/1930540.html   感谢博主分享! NET 3.5在System.Collections.Generic命名空间中包含一个新的集合类:HashSet<T>。这个集合类包含不重复项的 阅读全文
posted @ 2016-03-14 20:09 狂奔的蜗牛163 阅读(14993) 评论(0) 推荐(1) 编辑
  2016年3月13日
摘要: 题目是: Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm 阅读全文
posted @ 2016-03-13 17:29 狂奔的蜗牛163 阅读(503) 评论(0) 推荐(1) 编辑
  2016年3月10日
摘要: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Not 阅读全文
posted @ 2016-03-10 09:33 狂奔的蜗牛163 阅读(430) 评论(0) 推荐(0) 编辑
  2016年3月9日
摘要: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. 我的代码, 阅读全文
posted @ 2016-03-09 18:31 狂奔的蜗牛163 阅读(221) 评论(0) 推荐(0) 编辑
  2016年3月8日
摘要: 接上文转载:C#中事件的由来,这时候,我们注释掉编译错误的行,然后重新进行编译,再借助Reflactor来对 event的声明语句做一探究,看看为什么会发生这样的错误: public event GreetingDelegate MakeGreet; 可以看到,实际上尽管我们在GreetingMan 阅读全文
posted @ 2016-03-08 16:47 狂奔的蜗牛163 阅读(166) 评论(0) 推荐(0) 编辑