Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Min max elements swap of the array

Language: Layout:
+ ] Show input
Compilation time: 0,31 sec, absolute running time: 0,2 sec, cpu time: 0,17 sec, average memory usage: 15 Mb, average nr of threads: 3, absolute service time: 0,54 sec 
edit mode |  history  | discussion
The array is  : 1 2 3 4 5 6 
After min max swap  : 6 2 3 4 5 1