摘要: 83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1- 阅读全文
posted @ 2016-09-09 22:15 花椰菜菜菜菜 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 70. Climbing Stairs You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many dist 阅读全文
posted @ 2016-09-09 21:58 花椰菜菜菜菜 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 67. Add Binary Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 两个字符串存储二进制数,进行二进制加法,返回相加之后的 阅读全文
posted @ 2016-09-09 16:48 花椰菜菜菜菜 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 66. Plus One Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significa 阅读全文
posted @ 2016-09-09 11:48 花椰菜菜菜菜 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 58. Length of Last Word Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the 阅读全文
posted @ 2016-09-09 11:16 花椰菜菜菜菜 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 38. Count and Say The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 阅读全文
posted @ 2016-09-09 10:59 花椰菜菜菜菜 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 36. Valid Sudoku Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cel 阅读全文
posted @ 2016-09-09 09:43 花椰菜菜菜菜 阅读(229) 评论(0) 推荐(0) 编辑