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 — leetcode-1/algorithms/python/BinaryTreeTilt/findTilt.py at master · swangcu/leetcode-1 Expand file tree/ Copy pathfindTilt.pyMore file actions 10 lines (10 loc) · 276 Bytes / Copy pathfindTilt.pyFile metadata and controls10 lines (10 loc) · 276 Bytes 1 2 3 4 5 6 7 8 9 10 def findTilt(self, root): self.res = 0 def helper(root): if not root: return 0 left = helper(root.left) right = helper(root.right) self.res += abs(left - right) return root.val + left + right helper(root) return self.res |
| 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. |