Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Moving to left node: 2]
- [Pushing current node to Stack: [4] ]
- [Moving to left node: 1]
- [Pushing current node to Stack: [4, 2] ]
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 1] ]
- [Popping current node from Stack: [4, 2] ]
- [Returned to previous node: 1]
- PRINT: 1
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 1] ]
- [Popping current node from Stack: [4, 2] ]
- [Returned to previous node: 2]
- PRINT: 2
- [Moving to right node: 3]
- [Pushing current node to Stack: [4, 2, 2] ]
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 2, 3] ]
- [Popping current node from Stack: [4, 2, 2] ]
- [Returned to previous node: 3]
- PRINT: 3
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 2, 3] ]
- [Popping current node from Stack: [4, 2, 2] ]
- [Returned to previous node: 4]
- PRINT: 4
- [Moving to right node: 6]
- [Pushing current node to Stack: [4, 2, 2, 4] ]
- [Moving to left node: 5]
- [Pushing current node to Stack: [4, 2, 2, 4, 6] ]
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 2, 4, 6, 5] ]
- [Popping current node from Stack: [4, 2, 2, 4, 6] ]
- [Returned to previous node: 5]
- PRINT: 5
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 2, 4, 6, 5] ]
- [Popping current node from Stack: [4, 2, 2, 4, 6] ]
- [Returned to previous node: 6]
- PRINT: 6
- [Moving to right node: 7]
- [Pushing current node to Stack: [4, 2, 2, 4, 6, 6] ]
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 2, 4, 6, 6, 7] ]
- [Popping current node from Stack: [4, 2, 2, 4, 6, 6] ]
- [Returned to previous node: 7]
- PRINT: 7
- [Moving to node: None]
- [Pushing current node to Stack: [4, 2, 2, 4, 6, 6, 7] ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement