We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Modified Kaprekar Numbers
Modified Kaprekar Numbers
Sort by
recency
|
1041 Discussions
|
Please Login in order to post a comment
Here is my rather long Python solution! The first function checks if a number is a modified kaprekar number, and the second function puts all numbers in the specified into the first function, and returns the results.
in c++ code hackerrank.com
in engligh
void kaprekarNumbers(int p, int q) { for(int i;i
Here is my python code (simple brute force):
Here is my c++ solution, you can what the explanation here : https://youtu.be/MttrQCHGu3w
JavaCode