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

HW Descending order

Language: Layout:
+ ] Show input
Absolute running time: 0.14 sec, cpu time: 0.1 sec, memory peak: 6 Mb, absolute service time: 0,15 sec 
edit mode |  history  | discussion
Hello, world!
Passnumber:  0
Possible values for i: 5

Possible values for i: 4
4 --> [1, 5, 89, 23, 8, 1]

Possible values for i: 3

Possible values for i: 2
2 --> [1, 89, 5, 23, 8, 1]

Possible values for i: 1
1 --> [89, 1, 5, 23, 8, 1]

------------------------------------------------
Passnumber:  1
Possible values for i: 5

Possible values for i: 4

Possible values for i: 3
3 --> [89, 1, 23, 5, 8, 1]

Possible values for i: 2
2 --> [89, 23, 1, 5, 8, 1]

Possible values for i: 1

------------------------------------------------
Passnumber:  2
Possible values for i: 5

Possible values for i: 4
4 --> [89, 23, 1, 8, 5, 1]

Possible values for i: 3
3 --> [89, 23, 8, 1, 5, 1]

Possible values for i: 2

Possible values for i: 1

------------------------------------------------
Passnumber:  3
Possible values for i: 5

Possible values for i: 4
4 --> [89, 23, 8, 5, 1, 1]

Possible values for i: 3

Possible values for i: 2

Possible values for i: 1

------------------------------------------------
Passnumber:  4
Possible values for i: 5

Possible values for i: 4

Possible values for i: 3

Possible values for i: 2

Possible values for i: 1

------------------------------------------------
Passnumber:  5
Possible values for i: 5

Possible values for i: 4

Possible values for i: 3

Possible values for i: 2

Possible values for i: 1

------------------------------------------------
[89, 23, 8, 5, 1, 1]