Hackerrank – Modified Kaprekar Numbers

Hackerrank – Problem Statement

A description of the problem can be found on Hackerrank.

Solution

Iterate from p to q and check if actual number Kaprekar number (the addition of 2 parts of squared number is equal to actual number)

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby

Leave a Reply

Your email address will not be published. Required fields are marked *