2015年4月9日

173. Binary Search Tree Iterator

摘要: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next... 阅读全文

posted @ 2015-04-09 11:57 shini 阅读(95) 评论(0) 推荐(0) 编辑

174. Dungeon Game

摘要: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a... 阅读全文

posted @ 2015-04-09 11:47 shini 阅读(115) 评论(0) 推荐(0) 编辑

179. Largest Number

摘要: Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num... 阅读全文

posted @ 2015-04-09 11:38 shini 阅读(94) 评论(0) 推荐(0) 编辑

187. Repeated DNA Sequences

摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to ... 阅读全文

posted @ 2015-04-09 11:29 shini 阅读(177) 评论(0) 推荐(0) 编辑

导航