Sort a Pair of Numbers
Given two integers x and y, return a list of integers: the first being the minimum of x and y, and the second being the maximum of x and y.
Example 1
Input:
x = 5; y = 3
Output:
[3, 5]
main.cpp
cpp
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal