Solutions to LaiCode problems at <>LAICODE
Most solutions are written in python 2. Some questions in LaiCode don't accept python implementations, in which cases I provide solutions in java.
tree
module provides TreeNode
class, including methods to traverse a tree.
tree
module also provides function construct_tree()
which constructs a tree from a list representation in "level order" as shown here.