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.
the description says 'if the given number can be rearranged' meaning 1212 can be rearranged to 1221 which becomes a palindrom, but i dont know where to start solving this prolem now -and oh you asked this 5 years ago haha
no it's not, if it's then tell me how?
This kata is named "Armstrong Number" but Armstrong numbers are defined slightly differently, see Wikipedia and wolfram.com.
You have to complete challenges you didnt already complete in any other language (can find it by sorting katas by "kata I have not trained on". If you do the same challenge in a different language, it doesnt award you honor. IMO this makes sense since only changing the syntax around doesnt require much problem solving in most cases. This site is far more about the problem solving part of programming than syntax learning.
I am 5Kyu in javascript. I am now writing katas in Ruby. But even after solving 5kyu kata in ruby twice my rank is still 7 and not going up. I have solved a different kata in ruby still the same.
Thank you for your suggestion. I have edited it and included more details. As well as I have included more basic and random tests.
To me it does not seem like a duplicate kata.
0 and 1 are the only single digit numbers that are Armstrong numbers (using the definition given in the kata instructions).
I don't think this kata will be approved because it is marked as a duplicate (see other comments below).
The description for this kata is not very thourough. it doesnt say what should happen incase of a number with one digit, and it doesnt really give any example cases.
In the attempt 1 and 0 are treated differently than other single digit numbers which does not make sense, so I believe the solution is broken.
There are also no sample tests.
This comment is hidden because it contains spoiler information about the solution
NaN
is not'NaN'
.This comment is hidden because it contains spoiler information about the solution
typeof(NaN) = "number"
therefore your code is denied from the first if statement and defaults to the else statement. Find a way of correctly dealing with NaN values.This comment is hidden because it contains spoiler information about the solution
I am also getting same error. My program works everywhere else fine.
TypeError: Cannot read property 'sort' of undefined at testAnagrams at Object.handleError at ContextifyScript.Script.runInThisContext at Object.exports.runInThisContext
any suggestions please
Loading more items...