Showing Posts From

N ary tree

N-ary Trees: Traversal & Encoding

N-ary Trees: Traversal & Encoding

Week 13 notes: once a node can have any number of children, the binary-tree patterns still work, you just loop over children. Plus encoding an N-ary tree as a binary one.