
Design
文章平均质量分 79
dyllanzhou
这个作者很懒,什么都没留下…
展开
-
[Leetcode]Peeking Iterator
Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it essentially peek() at the element that will be re原创 2015-10-09 19:17:01 · 374 阅读 · 0 评论 -
[Leetcode]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. Calling next() will return the next smallest number in the BST. Note: next() and原创 2015-10-11 11:44:37 · 272 阅读 · 0 评论 -
[Leetcode]Serialize and Deserialize Binary Tree
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be原创 2015-12-28 20:17:08 · 347 阅读 · 0 评论