Correction: I forget to increment the `rd` variable in the while loop. Before `ans += 1`, you can add a line `rd += 1`. This does not affect the coding or logic, but affect the round number when you do printing operations.
For more questions, please follow up at our channel @Code-Yao and corresponding playlists.
Download
0 formats
No download links available.
leetcode 3510 Minimum Pair Removal to Sort Array II | minHeap | NatokHD