+ 2

compute tree height what is error in this code ??

https://code.sololearn.com/cpQYpD7z40Um/?ref=app

16th Aug 2020, 5:02 AM
__n
__n - avatar
2 ответов
+ 3
For lines 9 and 10 you should use input() on sololearn because that's how the SL playground can hook into the inputbox popup on your phone. self.n = int(input()) self.parent = list(map(int, input().split())) I am not sure what kind of input your program expects or even what it is supposed to do, so you need to explain if you need more help.
16th Aug 2020, 6:31 AM
Tibor Santa
Tibor Santa - avatar
0
??????????
2nd Sep 2020, 12:20 PM
Krish
Krish - avatar