Hackerrank – Lonely Integer

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

Solution
Find counts of all elements with the same value and print only these that their count is equals to 1.

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby