My Summary
Tree Related Problem:1) Recursive solution is always first choice
2) Inorder traversal is useful
For numeric questions, be aware of cases where input might be INTEGER.MAX_VALUE, INTEGER.MIN_VALUE, and abs(INTEGER.MIN_VALUE) = INTEGER.MAX_VALUE + 1
And also the case where number might be positive or negative.
No comments:
Post a Comment