摘要: #题目简述:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are fille... 阅读全文
posted @ 2015-04-18 23:43 mrbean 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #题目简述:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".#解题思路: class Solution: # @pa... 阅读全文
posted @ 2015-04-18 19:10 mrbean 阅读(259) 评论(0) 推荐(0) 编辑
摘要: #题目简述Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3... 阅读全文
posted @ 2015-04-18 18:31 mrbean 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #题目描述Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or ... 阅读全文
posted @ 2015-04-18 18:15 mrbean 阅读(246) 评论(0) 推荐(0) 编辑
摘要: #题目简述Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last ... 阅读全文
posted @ 2015-04-18 16:14 mrbean 阅读(271) 评论(0) 推荐(0) 编辑
摘要: #题目简述The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed ... 阅读全文
posted @ 2015-04-18 15:51 mrbean 阅读(268) 评论(0) 推荐(0) 编辑