Here in this course, ı couldn’t understand what does “nodes_to_visit = [self]” do. I mean what did I achieve by placing self in a list? Does it refers to the current TreeNode class? I mean, for example:
root = TreeNode(“apple”)
Now inside the root class we have “nodes_to_visit = [self]” and here, does “self” refers to root class ?