Back to course home
0% completed
Vote For New Content
Any feedback on this solution?https://leetcode.com/problems/sliding-window-media...
Anthony DiFede
Jan 31, 2023
Any feedback on this solution?
https://leetcode.com/problems/sliding-window-median/submissions/888474546/
0
0
Comments
Comments
Sachin Dev S10 months ago
this will not work now, they have added a test case which gives TLE, need to find a better solution than O(N*K).
I saw a solution using TreeMap,
However instead of using two priority queue's we use two Tree Sets as we want O(logk) for remove(element). Priority Queue...
On this page