nice kata. however, i used a function with a default argument for my preorder, postorder and inorder functions, and the tests persist the value of this default parameter. I could write this program outside of the codewars interface, but can't in the way the interface expects me to write it. This seems to be a bug in the interface.
it sounds like the infamous mutable default arguments Python gotcha. But without more information it's impossible to be sure, and the OP is gone.
nice kata. however, i used a function with a default argument for my preorder, postorder and inorder functions, and the tests persist the value of this default parameter. I could write this program outside of the codewars interface, but can't in the way the interface expects me to write it. This seems to be a bug in the interface.