原文:【LeetCode】173. Binary Search Tree Iterator (2 solutions)

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 smallest number in the ...

2014-12-31 16:32 1 4935 推荐指数:

查看详情

[LeetCode] Validate Binary Search Tree

Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node ...

Fri Nov 16 17:23:00 CST 2012 2 4267
LeetCode:Recover Binary Search Tree

其他LeetCode题目欢迎访问:LeetCode结题报告索引 题目链接 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its ...

Wed Nov 27 22:51:00 CST 2013 2 2874
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM