8000 GitHub - haruncetin/AttributeParser: In this code, I provide a solution to the Attribute Parser problem asked in Hackerrank challenges.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

haruncetin/AttributeParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Attribute Parser from Hackerrank

This code is created from Attribute Parser challenge of Hackerrank platform. It takes a list of xml markup expressions and parses all. Then it can be queried by "." for nested tags, and "~" for attributes of that tags (i.e. tag1~value, tag1.tag2~name).

Example inputs:

4 3
<tag1 value = "HelloWorld">
<tag2 name = "Name1">
</tag2>
</tag1>
tag1.tag2~name
tag1~name
tag1~value

2 1
<tag1 value = "HelloWorld">
</tag1>
tag1~value

10 10
<a value = "GoodVal">
<b value = "BadVal" size = "10">
</b>
<c height = "auto">
<d size = "3">
<e strength = "2">
</e>
</d>
</c>
</a>
a~value
b~value
a.b~size
a.b~value
a.b.c~height
a.c~height
a.d.e~strength
a.c.d.e~strength
d~sze
a.c.d~size

About

In this code, I provide a solution to the Attribute Parser problem asked in Hackerrank challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0