Tuesday, August 14, 2018

Leetcode 414. The third maximum number

August 14, 2018


Introduction



It is an easy level array algorithm. I spent time to read a few discussion and then I started to write code using SortedDictionary, SortedSet to implement a minimum heap, and also write code just using three variable for top three maximum numbers.


My C# practice 


Here is the folder containing all three practice.

Here is my sharing on Leetcode discuss called C# solution using SortedSet.


No comments:

Post a Comment