Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?

book
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

main.cpp

cpp

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt