Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1]
- 1
- [1,2,3,4]
- 1
- \
- 2
- \
- 3
- \
- 4
- [5,1,4,2,3]
- 5
- /
- 1
- \
- 4
- /
- 2
- \
- 3
- [5,4,3,2,1,6,7,8,9]
- 5
- / \
- 4 6
- / \
- 3 7
- / \
- 2 8
- / \
- 1 9
- [4,2,1,3,6,5,7]
- 4
- / \
- 2 \
- / \ 6
- 1 3 / \
- 5 7
- [8,3,1,6,4,7,10,14,13]
- 8
- / \
- 3 10
- / \ \
- 1 6 14
- / \ /
- 4 7 13
- [2,3,1]
- 2
- \
- 3
- Not possible because the 1 is smaller than the 2
- [6,3,2,4,5,1,8,7,9]
- 6
- /
- 3
- / \
- 2 4
- \
- 5
- Not possible, because the 1 is smaller than the 2,3, and 4
- [1,2,3,4,5,7,8,6]
- 1
- \
- 2
- \
- 3
- \
- 4
- \
- 5
- \
- 7
- \
- 8
- Not possible, because the 6 is smaller than the 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement