• + 1 comment

    wait no, sorry, one last thing.

    this_level.extend()
    

    why use extend instead of append?

    I used a similar solution with the level order traversal one but used append instead.