#hello the problem in the getdepth method
12 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
I do see a base case though?
yes, but when i compile it says olivia = 2 even tho olivia isnt in the tree so normally it would have printed -1
Try debugging then.
thats why im here if someone can give me a hint
oh okay thank you !
@proven trail Has your question been resolved? If so, type !solved :)
!solved