XML
-
Practice>Python>XML>XML2 - Find the Maximum Depthhackerrank.com 2019. 4. 19. 12:52
hackerrank.com XML2 - Find the Maximum Depth Problem Link : https://www.hackerrank.com/challenges/xml2-find-the-maximum-depth/problem Difficulty : Easy Tip As it should be resolved by calling recursion fuction, it is a bit tricky Check it have child, or not No child, maxdepth should be updated, if maxdepth is smaller than level If child, we should call depth() with child Solution import xml.etre..