Python3 does not support pass by reference, difficult to solve Tree Questions!

Hi Guys, i am new to python3 and just learnt that it does not support pass by reference. This is specially difficult given that i have been using C++ earlier for Binary Tree problems and could modify the tree in place using pointers. Anyone else face the same issue? How did you overcome it? (I have been passing the parent node in all my codes)

image

Comments (4)