- 博客(6)
- 收藏
- 关注
原创 Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same ...
2018-03-17 22:53:55 126
原创 3Sum
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 zero.Note: The solution set must not contain dup...
2018-03-17 17:45:53 118
原创 Largest Number At Least Twice of Others
Example 1:Input: nums = [3, 6, 1, 0] Output: 1 Explanation: 6 is the largest integer, and for every other number in the array x, 6 is more than twice as big as x. The index of value 6 is 1, so w...
2018-03-12 22:03:48 181
原创 Min Cost Climbing Stairs
Example 1: Input: cost = [10, 15, 20] Output: 15 Explanation: Cheapest is start on cost[1], pay that cost and go to the top.Example 2: Input: cost = [1, 100, 1, 1, 1, 100, 1, 1, 100, 1] Output:...
2018-03-12 21:41:39 102
原创 Find Smallest Letter Greater Than Target
examples: Input: letters = [“c”, “f”, “j”] target = “a” Output: “c”Input: letters = [“c”, “f”, “j”] target = “c” Output: “f”Input: letters = [“c”, “f”, “j”] target = “d” Output: “f”Inp...
2018-03-05 22:10:56 116
原创 第一篇博客哈
这几年发现知识量越来越多,有的知识太久不用就会忘,其实一直都想把学过的知识以及个人的理解写下来,但是比较懒就没有做,现在开通了博客,从今天开始把我学的一些知识就记录下来,以便以后需要的时候可以看看。 我的写作风格是尽可能通俗易懂,尽量理解原理,可能会有一些错误之处,欢迎各位和我讨论。 这个编辑器还是不太会用,以后慢慢摸索吧,边写边摸索。...
2018-03-05 11:09:43 90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人