摘要:
题目: Given an array where elements are sorted in ascending order, convert it to BST 解答: 阅读全文
摘要:
题目: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the neares 阅读全文
摘要:
题目: Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthes 阅读全文
摘要:
题目: Given a binary tree, determine if it is a valid Binary Search Tree (BST) 解答: 阅读全文