(no title)
the_origami_fox | 1 year ago
- It defines properties like 'bitNumber', 'leftChild' and 'rightChild' which have nothing to do with this type of tree.
- The search function search(k) calls an overloaded version of itself search(root, k) that is (1) illegal in these languages and (2) not defined.
- The insert function does not account for all scenarios.
And more.
I'm fairly convinced this was written with the assistance of a LLM. That would be a logical explanation to all those illogical choices.
fithisux|1 year ago