nums
with n objects colored red, white, or blue, sort nums
in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue. Return nums
once sorted.
murica([2, 0, 2, 1, 1, 0]) β [0, 0, 1, 1, 2, 2]
murica([2, 0, 1]) β [0, 1, 2]
murica([0]) β [0]
π³ TIME LEFT: seconds π³
function murica(nums) {
}
β° TOTAL TIME: seconds β°