Analysis
- Idea is straightforward by using the property that inorder traversal of binary search tree is an ascending sequence
Note
- Attention should be paid that when we use INT_MIN as the smallest element as s specific value, some element in the input might be INT_MIN
No comments:
Post a Comment
Enter you comment