摘要: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
|
|
|
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
摘要: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
|
|