上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页
摘要: 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 class So... 阅读全文
posted @ 2016-01-12 08:50 Hygeia 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Given an arraynumsand a target valuek, find the maximum length of a subarray that sums tok. If there isn't one, return 0 instead.Example 1:Givennums=[... 阅读全文
posted @ 2016-01-12 06:47 Hygeia 阅读(597) 评论(0) 推荐(0) 编辑
摘要: A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index.... 阅读全文
posted @ 2016-01-12 06:25 Hygeia 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat... 阅读全文
posted @ 2016-01-09 04:02 Hygeia 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially... 阅读全文
posted @ 2016-01-08 11:36 Hygeia 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].老娘提交了20次终于通过了的... 阅读全文
posted @ 2016-01-08 11:07 Hygeia 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Given an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the elements ofnumsexceptnums[i].Solv... 阅读全文
posted @ 2016-01-08 08:22 Hygeia 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.The input string does not contain lead... 阅读全文
posted @ 2016-01-08 04:48 Hygeia 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.public class Solution { public String int... 阅读全文
posted @ 2016-01-07 12:46 Hygeia 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.public class Solution { public int romanT... 阅读全文
posted @ 2016-01-07 12:32 Hygeia 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页