摘要: 刷个题,击败0.17%... Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each inpu 阅读全文
posted @ 2017-01-05 20:35 欢崽 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 浮点数的精度由有效数字的个数决定。除非用分数表示时,分母恰好是2的整数次幂,否则用二进制浮点类型无法准确地表示该数(0.1,表示成分数是1/10,分母10不能用有限二进制表示),二进制浮点类型无法准确的的表示该数。 decimal类型与浮点类型不同,保证范围内的所有十进制数都是精确的。精度高但是范围 阅读全文
posted @ 2017-01-05 14:19 欢崽 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 学习新语言最好的办法就是动手写代码。 库(或称为类库)的文件扩展名是.dll,其中dll代表“动态链接库(Dynamic Link Library)”。 不要在标识符中使用单词缩写。(一种是缩略写,一种是专用缩写) C#要求Main方法的返回类型为void或int,而且要么不带参数,要么接收一个字符 阅读全文
posted @ 2017-01-05 13:06 欢崽 阅读(266) 评论(0) 推荐(0) 编辑