algorithm-archivists / algorithm-archive

A collaborative book on algorithms
https://www.algorithm-archive.org
MIT License
2.33k stars 353 forks source link

Updated tree traversal chapter #979

Closed ell-hol closed 2 years ago

ell-hol commented 2 years ago

Made it more pythonic and compact. Usage of temp variable wasn't necessary nor was the loop through children or the appending of the root node to the stack.

Amaras commented 2 years ago

Alright, there seems to be a GH Actions problem, so we'll see when the incident is resolved, sorry for the delay. There won't be a problem, so an admin might merge it anyway.