上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100". 1 imp... 阅读全文
posted @ 2015-05-06 01:18 打小孩 阅读(141) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/length-of-last-word/Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the leng... 阅读全文
posted @ 2015-05-06 00:42 打小孩 阅读(142) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/climbing-stairs/You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 ... 阅读全文
posted @ 2015-05-06 00:17 打小孩 阅读(175) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/implement-strstr/Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is ... 阅读全文
posted @ 2015-05-05 23:37 打小孩 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/count-and-say/The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1i... 阅读全文
posted @ 2015-05-05 21:02 打小孩 阅读(164) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/reverse-linked-list/Reverse a singly linked list 1 public class Solution { 2 public static ListNode reverseList(List... 阅读全文
posted @ 2015-05-05 20:39 打小孩 阅读(113) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/count-primes/Description:Count the number of prime numbers less than a non-negative number,nclick to show more hints.Cre... 阅读全文
posted @ 2015-05-05 18:20 打小孩 阅读(121) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/balanced-binary-tree/https://leetcode.com/discuss/28162/java-o-n-solution-based-on-maximum-depth-of-binary-treeGiven a b... 阅读全文
posted @ 2015-05-05 17:04 打小孩 阅读(98) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/path-sum/Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values... 阅读全文
posted @ 2015-05-05 00:43 打小孩 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/merge-two-sorted-lists/Merge two sorted linked lists and return it as a new list. The new list should be made by splicin... 阅读全文
posted @ 2015-05-05 00:09 打小孩 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页