Здравейте, опитах два варианта на тази задача, но ми дава invalid result.
Write a program that orders a list of numbers in the following way:
You need to find out the criteria for yourself by looking at the example. You can also check the example below.
- On the only line of input, you will receive the numbers, separated by a comma.
- Display the list with the mysterious ordering applied removed, separated by a comma.
- 1 <= list.length <= 20
Ще съм благодарен !