GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — algorithms/tree/invert_tree.py at master · deba999/algorithms Expand file tree/ Copy pathinvert_tree.pyMore file actions 10 lines (9 loc) · 217 Bytes / Copy pathinvert_tree.pyFile metadata and controls10 lines (9 loc) · 217 Bytes 1 2 3 4 5 6 7 8 9 10 # invert a binary tree def reverse(root): if not root: return root.left, root.right = root.right, root.left if root.left: reverse(root.left) if root.right: reverse(root.right) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |