Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Very nice kata to exercise with.
Please don't post solution code in the comments.
If you mean to say the tests are wrong, please post your output vs. the expected output so we can see.
If you mean to say the description is wrong, that issue has been raised already below.
This comment is hidden because it contains spoiler information about the solution
updated to node 18
JS fork
I also solved this problem by using the split method to make it more easy for me for solving
n and m values are reversed in examples
The description is correct, but the example is wrong; the values of n and m are reversed. Good catch!
shouldn't it be the other way round? as in all the integers less than m whose sum of the digits squared is equal to n. Because in the description, n is always a square number. and the some of the numbers in the list of numbers given in the description are bigger than m
im so confused by this, i think i need to learn more about split
that was the short way:)
simple but timeouts are irritating, at the end really pleasing!!
Nice Kata!
Thanks ADLER!
For anyone having trouble understanding the description hopefully this will help.
Given positive integers
nandm, find all the integers less thannthat have a squared digit sum equal tom.Damn...... here I thought I was good 🤣🤣
Loading more items...