摘要: Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.分析: 我们知道,BS... 阅读全文
posted @ 2015-05-07 14:54 imKirin 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi... 阅读全文
posted @ 2015-05-07 13:15 imKirin 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, wh... 阅读全文
posted @ 2015-05-07 12:49 imKirin 阅读(143) 评论(0) 推荐(0) 编辑