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

H.W5

Language: Layout:
+ ] Show input
Absolute running time: 0.82 sec, cpu time: 0.19 sec, memory peak: 6 Mb, absolute service time: 0,83 sec 
edit mode |  history  | discussion
Hello, world!
[100, 5, 105, 89, 8, 23, 1]
[1, 5, 8, 23, 89, 100, 105]
Max number:  93
After swap:  [26, 54, 31, 17, 77, 93]

Max number:  77
After swap:  [26, 54, 31, 17, 77, 93]

Max number:  54
After swap:  [26, 17, 31, 54, 77, 93]

Max number:  31
After swap:  [26, 17, 31, 54, 77, 93]

Max number:  26
After swap:  [17, 26, 31, 54, 77, 93]

[17, 26, 31, 54, 77, 93]