Showing posts with label Leetcode 501: Find mode in binary search tree. Show all posts
Showing posts with label Leetcode 501: Find mode in binary search tree. Show all posts

Wednesday, August 8, 2018

Leetcode 501. Find Mode in Binary Search Tree

August 8, 2018

Introduction


It is an easy level tree algorithm. I like to work on the algorithm. It is hard for me to find time to write code today.

My practice


I spent over 60 minutes to write a solution. Here is my C# code.

The code can be simplified and then I wrote second version with less time. Here is C# code.

Leetcode discussion panel


I know that most of hard working people share their work on Leetcode discussion panel. I like to set a goal to share my practice as well. I like to track how quick I can learn from the community. Here is my sharing.