I have seen some people use the TreeNode* &root
while passing as a parameter in function while I use the TreeNode* root
.
Is there a difference or is it the same?
I have seen some people use the TreeNode* &root
while passing as a parameter in function while I use the TreeNode* root
.
Is there a difference or is it the same?