You need to reword the part where you explained the functions (and maybe post the code as well). What is function 2 doing?
There's no way it's constant though. A larger tree does not take the same time to traverse as a smaller one. That's before even taking into account the other 2 functions you have thus far only vaguely defined.
There's no way it's constant though. A larger tree does not take the same time to traverse as a smaller one. That's before even taking into account the other 2 functions you have thus far only vaguely defined.