摘要:
Using the same DAC idea of previous problem. Difference is that we need to do the pointed operation of linked list rather than just change the index o 阅读全文
摘要:
We can use DAC to build a height balanced BST, in a block of array from low to high, if low == high we are finding one node, just add it. if low == hi 阅读全文
摘要:
Same idea of the former problem, only difference is that the root is located in the last position of postorder array. And the left child is in pos-(en 阅读全文
摘要:
Using DFS to traverse the node and build the a tree. for a node, it has following properties: If its a left child node of its parent, then the left bo 阅读全文