動機 紀錄 Sol def solution(T): if not T: return -1 else: return 1+max(solution(T.l), solution(T.r))
Home » PostsTree-HeightNovember 6, 2021 · 1 min · zhengcfTable of Contents動機Sol動機#紀錄Sol#def solution(T): if not T: return -1 else: return 1+max(solution(T.l), solution(T.r))