Wednesday, September 14, 2016

Leetcode 98: validate binary search tree

Sept. 14, 2016

C++ implementation:
https://github.com/jianminchen/LeetCode-17/blob/master/98_v1.cpp

Start a drill to memorize the implementation:

1. How many variables are used in optimal solution?
2. How many lines of code?
3. What are not in the optimal solution?
4. ...

Leetcode solution blog:

http://juliachencoding.blogspot.ca/2016/09/a-drill-c-learning.html

Will write C# implementation very soon.

No comments:

Post a Comment