摘要:
Given a binary tree, design an algorithm which creates a linked list of all the nodes at each depth (e.g., if you have a tree with depth D,you'll have... 阅读全文
摘要:
Given a sorted (increasing order) array with unique integer elements, write an algorithm to create a binary search tree with minimal height.There is a... 阅读全文
摘要:
Implement a function to check if a binary tree is balanced. For the purposes of this question, a balanced tree is defined to be a tree such that the h... 阅读全文