摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文