10 2015 档案

[LeetCode] Bulls and Cows
摘要:Bulls and CowsYou are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, eac... 阅读全文

posted @ 2015-10-31 21:55 Eason Liu 阅读(2017) 评论(0) 推荐(0)

[LeetCode] Serialize and Deserialize Binary Tree
摘要:Serialize and Deserialize Binary TreeSerialization is the process of converting a data structure or object into a sequence of bits so that it can be s... 阅读全文

posted @ 2015-10-29 17:54 Eason Liu 阅读(565) 评论(0) 推荐(0)

[LeetCode] Find Median from Data Stream
摘要:Find Median from Data StreamMedian is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the m... 阅读全文

posted @ 2015-10-20 22:23 Eason Liu 阅读(632) 评论(0) 推荐(0)

[LeetCode] Convert Sorted List to Binary Search Tree
摘要:Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.... 阅读全文

posted @ 2015-10-19 19:49 Eason Liu 阅读(296) 评论(0) 推荐(0)

[LeetCode] Nim Game
摘要:Nim GameYou are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 t... 阅读全文

posted @ 2015-10-13 14:28 Eason Liu 阅读(456) 评论(0) 推荐(0)

[LeetCode] Word Pattern
摘要:Word PatternGiven apatternand a stringstr, find ifstrfollows the same pattern.Examples:pattern ="abba", str ="dog cat cat dog"should return true.patte... 阅读全文

posted @ 2015-10-06 10:54 Eason Liu 阅读(1672) 评论(0) 推荐(0)

[LeetCode] Unique Word Abbreviation
摘要:Unique Word AbbreviationAn abbreviation of a word follows the form . Below are some examples of word abbreviations:a) it --> it ... 阅读全文

posted @ 2015-10-02 12:52 Eason Liu 阅读(1351) 评论(1) 推荐(0)