Skip to content

Instantly share code, notes, and snippets.

@xtoss
Created April 14, 2013 02:02
Show Gist options
  • Select an option

  • Save xtoss/5381048 to your computer and use it in GitHub Desktop.

Select an option

Save xtoss/5381048 to your computer and use it in GitHub Desktop.
This is my output for attempt #4, but it was wrong. Clearly I did not get Case #10 right after comparing with Ry4an's result.
Case #1: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Case #2: 1 2 7 3 4 9 10 5 11 12 14 6 8 13 15
Case #3: 1 2 3 4 5
Case #4: 2 1 3 6 7 4 5 8 12 9 10 11 13 14 15 16 17 18 19 20
Case #5: 2 1
Case #6: 1
Case #7: 1 2 3 4 5 6 9 11 12 7 8 13 10
Case #8: IMPOSSIBLE
Case #9: 1 2 3 4 5
Case #10: 1 2 5 7 11 12 14 17 19 20 3 4 6 8 9 10 13 15 16 18
Case #11: 18 8 4 9 10 1 6 5 12 13 11 14 3 7 15 2 16 17 19 20
Case #12: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Case #13: 1 2 3 4 5 6 7 9 8
Case #14: 1
Case #15: 1 2 3
Case #16: IMPOSSIBLE
Case #17: IMPOSSIBLE
Case #18: 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 14 18 19 20
Case #19: 2 4 1 3 5 7 9 6 8 10 11 12 13 14 15 16 17 18 19 20
Case #20: 20 5 4 3 2 1 9 8 7 6 11 10 12 16 15 14 13 19 18 17
Case #21: 1 2 7 3 8 4 9 5 10 6 11 12 13 14 15 16 17 18 19
Case #22: 2 1 3 4
Case #23: 1 2 3 4 5 6 7 8 9 10
Case #24: IMPOSSIBLE
Case #25: 2 3 4 5 1 6 7 8 9 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment