This video is a solution to LeetCode 295, Find Median from Data Stream. I explain the question, go over the logic / theory behind solving the question and then solve it using Python.
Comment below if you have a better solution to this problem!
Let me know if you have any feedback and don't forget to subscribe for more videos!
Time stamps:
0:00 Question explained
0:59 Brute Force Solution explained
3:19 Intuition for 2 heaps solution
10:03 2 heaps solution step by step run through
16:36 Python code
Leetcode Data Structure I playlist:
• LeetCode Data Structures I
More leetcode questions solved:
• Add and Search Word - Data structure desig...