>>107834883
/*
class Node:
def __init__(self, val=None, left=None, right=None):
self.val = val
self.left = left
self.right = right
*/
def invert(root):
if root == None: return
invert(root.left)
invert(root.right)
root.left, root.right = root.right, root.left
Comment too long. Click here to view the full text.