The biggest floor in ascending order in 0th, 2th, 4th,..
The smallest ceil in descending order in 1th, 3th, 5th..

Input: a list of number
Output: a list applying funny sort

Example: 3 8 4 5 6 1 7
Output: 1 8 3 7 4 6 5

> as you can see: 1 3 4 5 is in ascend order, 8 7 6 is in descend order
Comments (0)