花花酱Min Heap SP21. By zxi on November 18, 2020 ... Swap the min element with the last one. O(1). swap(data_.back(), data_[0]);. // Get the min element.
確定! 回上一頁