-
Practice>Python>XML>XML2 - Find the Maximum Depthhackerrank.com 2019. 4. 19. 12:52728x90
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
728x90'hackerrank.com' 카테고리의 다른 글