295. Find Median from Data Strea 2022-03-01 本文已影响0人 外腾湖南 堆的妙用,思路是:数据流中的中位数一般可以通过大、小堆的方法来求,把元素排入两堆,那中间部分必定是中位数;