Monday, March 26, 2018

Leetcode 250: Count univalue subtrees

March 26, 2018

Introduction


It is a medium level algorithm. I was asked to solve the algorithm in the mock on March 25, 2018. So I had chance to learn from the peer.

Code review 


Here is my C# code. I got the idea to solve the problem since I studied another tree algorithm
Leetcode 230Kth Smallest Element in a BST on March 23, 2018.

No comments:

Post a Comment