Leetcode 2974. Minimum Number Game
Given an even-length array, repeatedly remove the two smallest remaining elements each round and append them to the result with the second-smallest first (i.e., for each pair of smallest elements a≤b append b then a); return the final array.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.