摘要: https://leetcode.com/problems/remove-linked-list-elements/Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 -... 阅读全文
posted @ 2015-05-04 23:42 打小孩 阅读(135) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-nth-node-from-end-of-list/Given a linked list, remove thenthnode from the end of list and return its head.For exa... 阅读全文
posted @ 2015-05-04 23:31 打小孩 阅读(136) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings 1 public cla... 阅读全文
posted @ 2015-05-04 23:06 打小孩 阅读(91) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/roman-to-integer/Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 39... 阅读全文
posted @ 2015-05-04 22:33 打小孩 阅读(115) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/palindrome-number/Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some ... 阅读全文
posted @ 2015-05-04 19:48 打小孩 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/string-to-integer-atoi/Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. ... 阅读全文
posted @ 2015-05-04 19:10 打小孩 阅读(101) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/zigzag-conversion/题目理解:http://blog.csdn.net/ljiabin/article/details/40477429The string"PAYPALISHIRING"is written in a zi... 阅读全文
posted @ 2015-05-04 14:27 打小孩 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2015-05-04 14:03 打小孩 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/valid-parentheses/Given a string containing just the characters'(',')','{','}','['and']', determine if the input string ... 阅读全文
posted @ 2015-05-04 13:42 打小孩 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/isomorphic-strings/Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters... 阅读全文
posted @ 2015-05-04 12:14 打小孩 阅读(213) 评论(0) 推荐(0) 编辑