We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
XML2 - Find the Maximum Depth
XML2 - Find the Maximum Depth
Sort by
recency
|
127 Discussions
|
Please Login in order to post a comment
Here is HackerRank XML2 - Find the Maximum Depth in Python solution - https://programmingoneonone.com/hackerrank-xml2-find-the-maximum-depth-solution-in-python.html
maxdepth = max(maxdepth, level+1) for x in elem: depth(x, level+1)