2 ms·
Horrible idea. 1. BFS is not supported. 2. Traversal type (inorder, preorer, postorder, or even mixed order!) is also not handled. 3. The syntax doesn't make
by meindnoch 1y ago
Horrible idea.
1. BFS is not supported.
2. Traversal type (inorder, preorer, postorder, or even mixed order!) is also not handled.
3. The syntax doesn't make it apparent that stack overflow can occur, e.g. by doing DFS on a linked list.