Hackerrank – Detect HTML Tags

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

Solution
Parse all tags by regex pattern <\s*[a-z0-9]+. Then sort them and print unique tags.

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby