We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I approached this problem by designing a custom struct with tag paths and attributes, and using a stack to handle nested tags.
I wrote a detailed breakdown on GitHub if anyone wants to learn from it. Feel free to check my profile for my GitHub link.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Attribute Parser
You are viewing a single comment's thread. Return to all comments →
I approached this problem by designing a custom struct with tag paths and attributes, and using a stack to handle nested tags. I wrote a detailed breakdown on GitHub if anyone wants to learn from it. Feel free to check my profile for my GitHub link.