摘要:
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRang... 阅读全文
posted @ 2016-01-21 16:08 cKK 阅读(206) 评论(0) 推荐(0)
|
||
|
摘要:
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRang... 阅读全文
posted @ 2016-01-21 16:08 cKK 阅读(206) 评论(0) 推荐(0)
摘要:
/*Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?*/public clas... 阅读全文
posted @ 2016-01-21 14:35 cKK 阅读(136) 评论(0) 推荐(0) |
||