0295. 数据流的中位数 #97
Replies: 3 comments
-
题解的思路有点问题:应该是小根堆记录大于中位数的数吧,然后大根堆记录小于中位数的数,这样才能拿到大于中位数的最小的数,和小于中位数的最大的数 |
Beta Was this translation helpful? Give feedback.
0 replies
-
再者说,你如何能拿到小根堆的最大值,大根堆的最小值呢? |
Beta Was this translation helpful? Give feedback.
0 replies
-
使用一个小根堆
为了满足上述条件,在进行
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
0295. 数据流的中位数 | 算法通关手册
https://algo.itcharge.cn/Solutions/0200-0299/find-median-from-data-stream/
Beta Was this translation helpful? Give feedback.
All reactions