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

DeeptiAlmostSorted

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.46 sec, absolute running time: 0.3 sec, cpu time: 0.17 sec, memory peak: 3 Mb, absolute service time: 1,77 sec 
edit mode |  history
before : 
5, 1, 2, 3, 4
misplaced Index = 0
after : 
1, 2, 3, 4, 5
isSorted Status =1
-------------------------
before : 
1, 3, 2, 5, 7, 9, 11
misplaced Index = 1
after : 
1, 2, 3, 5, 7, 9, 11
isSorted Status =1
-------------------------
before : 
1, 3, 5, 7, 9, 8
misplaced Index = 4
after : 
1, 3, 5, 7, 8, 9
isSorted Status =1
-------------------------
before : 
2, 2, 2, 2, 2, 2
misplaced Index = -1
after : 
2, 2, 2, 2, 2, 2
isSorted Status =1
-------------------------
before : 
1, 4, 3, 2
misplaced Index = 0
after : 
4, 3, 2, 1
isSorted Status =1
-------------------------
before : 
11, 9, 7, 5, 6, 3, 2, 1
misplaced Index = 4
after : 
11, 9, 7, 6, 5, 3, 2, 1
isSorted Status =1
-------------------------
before : 
11, 9, 7, 5, 3, 1, 2
misplaced Index = 6
after : 
11, 9, 7, 5, 3, 2, 1
isSorted Status =1
-------------------------
before : 
1, 4, 2
misplaced Index = 1
after : 
1, 2, 4
isSorted Status =1
-------------------------
before : 
2, 6, 5, 4, 3
misplaced Index = 0
after : 
6, 5, 4, 3, 2
isSorted Status =1
-------------------------
before : 
100, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27
misplaced Index = 0
after : 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 100
isSorted Status =1
-------------------------
before : 
27, 26, 1, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2
misplaced Index = 3
after : 
27, 26, 25, 1, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2
isSorted Status =0
-------------------------

    
                
λ
.NET NoSQL database for rapid development