Leetcode problem 100, understanding TreeNode
Advertisements I didn’t know where to post this question, but stackoverflow has been helpful before, so I am going to post my question here. This question is related to Leetcode problem number 100 (Same Tree) and my question is "how do TreeNode" actually work? class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left… Read More Leetcode problem 100, understanding TreeNode