摘要:
You need to find the largest value in each row of a binary tree. Example: 方法二: 阅读全文
posted @ 2017-10-23 08:14
daniel456
阅读(217)
评论(0)
推荐(0)
摘要:
Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,2,3]. Note: Recursive solu 阅读全文
posted @ 2017-10-23 08:07
daniel456
阅读(132)
评论(0)
推荐(0)
摘要:
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 n 阅读全文
posted @ 2017-10-23 08:00
daniel456
阅读(112)
评论(0)
推荐(0)
摘要:
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa 阅读全文
posted @ 2017-10-23 07:56
daniel456
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号