导航

11 2015 档案

摘要:Given an integer arraynums, find the sum of the elements between indicesiandj(i≤j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2)... 阅读全文

posted @ 2015-11-15 23:07 CSU蛋李 阅读(109) 评论(0) 推荐(0)

摘要:Given an Iterator class interface with methods:next()andhasNext(), design and implement a PeekingIterator that support thepeek()operation -- it essent... 阅读全文

posted @ 2015-11-14 01:00 CSU蛋李 阅读(378) 评论(0) 推荐(0)