摘要: https://leetcode.com/problems/kth smallest element in a bst/ Given a binary search tree, write a function kthSmallest to find the kth smallest element 阅读全文
posted @ 2016-11-10 21:20 BinWone 阅读(126) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/validate binary search tree/ Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is d 阅读全文
posted @ 2016-11-10 21:16 BinWone 阅读(110) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/delete node in a bst/ Given a root node reference of a BST and a key, delete the node with the given key in the BST. Ret 阅读全文
posted @ 2016-11-10 20:27 BinWone 阅读(668) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/convert sorted array to binary search tree/ Given an array where elements are sorted in ascending order, convert it to a 阅读全文
posted @ 2016-11-10 19:53 BinWone 阅读(129) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/sum root to leaf numbers/ Given a binary tree containing digits from 0 9 only, each root to leaf path could represent a 阅读全文
posted @ 2016-11-10 16:27 BinWone 阅读(142) 评论(0) 推荐(0) 编辑