#any criticisms on this?

1 messages · Page 1 of 1 (latest)

ebon cradle
#

nope, looks good

north imp
# ebon cradle nope, looks good

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

ebon cradle
#

can the last line be return NULL;?