Saturday, April 18, 2015

HackerRank::Algorithms::Warmup::Kaprekar Numbers

   I chose not to give this much a lot of thinking. I made a little ugly-looking brute-force solution which found the Kaprekar numbers (there are not too many of them, about 20 numbers from 0 to 100000). And then , for getting accepted I just put in those 20 numbers in an array and processed the input.



No comments:

Post a Comment