+ 1
BinaryTree issue
I have an issue but idk why this code is showing "Segmetion default" https://code.sololearn.com/cCg5ye2v8edx/?ref=app
1 ответ
+ 4
You have an infinite recursion. Also, you are reassigning tree inside insert, but this cannot be reflected, since the change is only locally (you need node **tree as parameter). But the primary problem now is the infinite loop.