https://leetcode.com/problems/string-to-integer-atoi/Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. ...
分类:
其他好文 时间:
2015-05-04 20:08:49
阅读次数:
128
https://leetcode.com/problems/zigzag-conversion/题目理解:http://blog.csdn.net/ljiabin/article/details/40477429The string"PAYPALISHIRING"is written in a zi...
分类:
其他好文 时间:
2015-05-04 15:15:28
阅读次数:
118
https://leetcode.com/problems/happy-number/Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following ...
分类:
移动开发 时间:
2015-05-04 15:12:32
阅读次数:
123
https://leetcode.com/problems/isomorphic-strings/Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters...
分类:
其他好文 时间:
2015-05-04 13:30:33
阅读次数:
118
https://leetcode.com/problems/longest-substring-without-repeating-characters/Given a string, find the length of the longest substring without repeatin...
分类:
其他好文 时间:
2015-05-03 13:14:25
阅读次数:
121
https://leetcode.com/problems/add-two-numbers/You are given two linked lists representing two non-negative numbers. The digits are stored in reverse o...
分类:
其他好文 时间:
2015-05-03 11:48:50
阅读次数:
122
题目:https://leetcode.com/problems/3sum-closest/【标签】Array; Two Pointers【个人分析】 这道题和它的姊妹题 3Sum 非常类似, 就不再多说了,具体一些的分析可以参考 [Leetcode][015] 3Sum 1 public cla....
分类:
编程语言 时间:
2015-05-03 07:05:54
阅读次数:
128
题目在这里:https://leetcode.com/problems/3sum/【标签】 Array; Two Pointers【个人分析】 老实交待,这个题卡半天,第一次做不会,抄别人的。过了很久,第二次做,还是不会……。好几次都是Time Limited Error。在看过正确答案之后,...
分类:
编程语言 时间:
2015-05-03 07:05:53
阅读次数:
130
https://leetcode.com/problems/add-two-numbers/
题意:两个链表表示两个数 ,
2 4 3
5 6 4
按照加法的规则从左往右加以及 进位。
输出:和的链表。
仍然是水题。一些特殊情况需要考虑(这些做题的时候我考虑到了)
1、如果两个长度不等,如l1>l2 ,那么需要l1比l2多出来的部分加上进位copy到ans里
2、5+5的...
分类:
其他好文 时间:
2015-05-02 22:06:04
阅读次数:
215
Logistic Regression and Gradient DescentLogistic regression is an excellent tool to know for classification problems. Classification problems are prob...
分类:
其他好文 时间:
2015-05-02 13:40:13
阅读次数:
102