
Leetcode
mingtian369
竹子用了4年的时间,仅仅长了3cm,从第五年开始,以每天30cm的速度疯狂的生长,仅仅用了六周的时间就长到了15米。其实,在前面的四年,竹子将根在土壤里延伸了数百平米。做人做事亦是如此,不要担心你此时此刻的付出得不到回报,因为这些付出都是为了扎根。人生需要储备!多少人,没熬过那三厘米!
展开
-
Two Sum
https://oj.leetcode.com/problems/two-sum/ Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two num原创 2015-01-26 16:21:30 · 277 阅读 · 0 评论 -
Leetcode: String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca原创 2015-09-10 21:51:24 · 286 阅读 · 0 评论 -
Leetcode:Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 代码: public static int reverse(int x) { int tag=1; if(x < 0){原创 2015-09-10 20:09:22 · 383 阅读 · 0 评论