Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.