Example | x | Answer |
0 | { 3, 1, 2 } |
"Possible" (swap it to become { 3, 2, 1 } or { 1, 2, 3 } |
1 | { 1, 2, 4 } |
"Impossible" |
2 | { 1, 1, 1, 1, 1, 1 } |
"Possible" |
3 | { 1000, 704, 1 } |
"Impossible" |
4 | { 7, 3, 11, 5, 1, 9 } |
"Possible" |
The way that I did that was to: