+ 2
compute tree height what is error in this code ??
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.
0
??????????