#any criticisms on this?
1 messages · Page 1 of 1 (latest)
before i did
if(!leftSide) return rightside
return leftSide;
instead of doing return root but.
i think for LCA and a lot of recursion stuff being pedantic to show the logic of the sides more clearly helps clarity
can the last line be return NULL;?