Leetcode 295. Find median from data stream - discussion panel is here.
C# solution using SortedSet. The C# code to study is here.
C# solution using MinHeap/ MaxHeap - self defined. The study code is here.
Read blog about the discussion again - link is here - the blog on ardendertat.com
Question 69: Median of a stream (Julia's ranking: 10 out of 10 March 31, 2017), book: Code interviews, Harry He.
Follow up
June 6, 2017
Julia C# practice using SortedSet, the code is here.
Julia C# practice using self-defined Heap, the code is here.
June 29, 2017
Review SortedSet implementation, the code is here.
No comments:
Post a Comment