hackerrank.com
Practice>Python>XML>XML 1 - Find the Score
건이두
2019. 4. 17. 13:09
728x90
XML 1 - Find the Score
Problem Link : https://www.hackerrank.com/challenges/xml-1-find-the-score/problem
Difficulty : Easy
Tip
- Problem can be solved in two ways
- We iterate all of child node
- We can visit child node as recursive function
- We will follow this way
- As input is XML, there is only one root element.
- Need one loop to visit every child nodes, and get the number attributes of node
Solution
728x90