-
Practice>Python>XML>XML 1 - Find the Scorehackerrank.com 2019. 4. 17. 13:09728x90
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'hackerrank.com' 카테고리의 다른 글
Practice>Python>Regex and Parsing>Detect Floating Point Number (0) 2019.04.22 Practice>Python>XML>XML2 - Find the Maximum Depth (0) 2019.04.19 Practice>Python>Regex and Parsing>Validating UID (0) 2019.04.16 Practice>Python>Regex and Parsing>Detect HTML Tags, Attributes and Attribute Values (0) 2019.04.15 Practice>Python>Regex and Parsing>HTML Parser - Part 2 (0) 2019.04.15