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!
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! :)
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 :)
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)
Within the insturctions you will find the following line.
Your code must test that all array items are numbers and return "invalid array" if it finds that either item is not a number.
There are no set tests that require validation which is why you pass them but fail the random tests.
If you have written code to validate the array and still getting an error there may be an issue within your code.
I hope this helps, goodluck :)
This Kata uses Node version 8.1.3 which doesn't support trimEnd, try trimRight instead :)
This comment is hidden because it contains spoiler information about the solution
Loading more items...