1class Solution:2 def maxDepth(self, root: "Node") -> int:34 if not root:5 return 067 if root.children:8 return 1 + max([self.maxDepth(x) for x in root.children])9 else:10 return 1
WPM •0 •0
ACC •0 •0
TIME •0