摘要: 题目: Given an array where elements are sorted in ascending order, convert it to BST 解答: 阅读全文
posted @ 2019-02-22 16:17 林木声 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 阅读全文
posted @ 2019-02-22 15:47 林木声 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 阅读全文
posted @ 2019-02-22 15:42 林木声 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, determine if it is a valid Binary Search Tree (BST) 解答: 阅读全文
posted @ 2019-02-22 15:36 林木声 阅读(104) 评论(0) 推荐(0) 编辑