rainix wrote:
>
>
>               1
>               /\
>            2    3
>           /\      /\
>         4  5  6  7
>         /\
>       8  9
>             (5)
>
> time cost: 2n, O(n)
> space cost: 3, O(1)

Unfortunately this is not a BST.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to