Skip to content

lab2: Allow running display-functions on empty tree

Remove early return from display_tree in ui.py. This means the UI will now attempt to run size, height, inorder, preorder, postorder och bfs_order_star for empty trees as well. This should make it easier for students to test and discover issues with how these functions handle empty trees.

Signed-off-by: Simon Sundberg simon.sundberg@kau.se

Merge request reports