摘要: 有一个包含n个整数的数组arr,请计算出数组中所有元素之和。(假设中间结果以及最终结果都不会超出32位有符号整型的范围) static int SumOfArray(int[] intArr) { if (intArr.Length == 0 || intArr == null) { throw new Exception("Input Array can not be empty"); } int result = 0; fo... 阅读全文
posted @ 2013-10-29 07:50 Ligeance 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 希望每天最少一题,一个月内完成50题。COME ON! 阅读全文
posted @ 2013-10-29 07:44 Ligeance 阅读(126) 评论(0) 推荐(0) 编辑