abc_begin

导航

2018年2月4日 #

428. Pow(x, n)【medium】

摘要: Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe 阅读全文

posted @ 2018-02-04 19:24 LastBattle 阅读(217) 评论(0) 推荐(0)

149. Best Time to Buy and Sell Stock【medium】

摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文

posted @ 2018-02-04 18:48 LastBattle 阅读(168) 评论(0) 推荐(0)

78. Longest Common Prefix【medium】

摘要: Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common 阅读全文

posted @ 2018-02-04 18:18 LastBattle 阅读(136) 评论(0) 推荐(0)

57. 3Sum【medium】

摘要: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文

posted @ 2018-02-04 18:03 LastBattle 阅读(144) 评论(0) 推荐(0)

419. Roman to Integer【medium】

摘要: Given a roman numeral, convert it to an integer. The answer is guaranteed to be within the range from 1 to 3999. Have you met this question in a real 阅读全文

posted @ 2018-02-04 17:26 LastBattle 阅读(147) 评论(0) 推荐(0)

12. Min Stack【medium】

摘要: Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c 阅读全文

posted @ 2018-02-04 11:57 LastBattle 阅读(210) 评论(0) 推荐(0)