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.
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
Try some easier problems; 8kyu problems will help you better understand the basics.
Other resources to consider:
With some practise, you'll be able to understand and solve this problem with ease.
Good luck! :)
Thank you!
Minor spelling mistakes in description
fed back
->feedback
alphebetised
->alphabetised
See the last part of the description.
Move the first letter of each word to the end of it, then add "ay" to the end of the word.
Leave punctuation marks untouched.
Hope that helps.
For anyone having trouble understanding the description hopefully this will help.
Given positive integers
n
andm
, find all the integers less thann
that have a squared digit sum equal tom
.It's called an Unary plus (+) and it converts a value to a number. Follow the link for a more in depth explanation.
Hope that helps :)
Fixed
Codeblock fixed
Removed colon from method name (Ruby)
If you refer to the first point under info in the description.
MUTATE the input array/list, don't return anything
You have created a new list
red
rather than mutating the provided listwealth
.Hope that helps, goodluck :)
Minor issue - Ruby method name ends with a colon.
Expected and actual values appear to be reversed in the true test error message. (JavaScript)
Loading more items...