← previousnext →
Problem
Return length-2 array with two ints in non-decreasing order.
Examples
sortTwoElements(5, 3) -> [3, 5]sortTwoElements(2, 2) -> [2, 2]
Return length-2 array with two ints in non-decreasing order.
sortTwoElements(5, 3) -> [3, 5]sortTwoElements(2, 2) -> [2, 2]