Hackerrank – Game of Thrones – I

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

Solution
Palindrome is when:

  • if the length of a string is even, then each character needs to be even times in the string
  • if the length of a string is odd, then there is only one character, which count in the string is odd

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby