Hackerrank – Detect HTML Attributes

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
Parse all tags with attributes. Then parse only tags and attributes. Group attributes by tag name. Sort grouped tags and accordingly attributes.

I created solution in:

All solutions are also available on my GitHub.

Java

Scala