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.
Shorter https://www.codewars.com/kata/reviews/5266876c8f4bf2da9b000365/groups/66bf3ade1baad7bd715acf82
Sometimes, especially when I get an email that my subscription renewed 😅
JavaScript.
You could also just update the description I guess, instead of changing the tests.
Needs tests for all examples in the description:
ha = female => 1
Ha = male => 1
Many solutions are wrong and do not work for a single "ha" / "Ha".
.
What unexpected behaviour are you talking about here? The ECMA specification says that the radix will default to 10 unless the string starts with "0x", which can't happen here as all non-numeric characters are removed.
https://262.ecma-international.org/12.0/#sec-parseint-string-radix
Count from
begin
toend
withstep
increment.sequenceSum(begin=0,end=45,step=5)
0+5+10+15+20+25+30+35+40+45 == 225
.
It was originally made in JS as an exercise to teach you about varargs.
This comment is hidden because it contains spoiler information about the solution
Please link to the duplicate when commenting.
Sad this kata just died, hasn't had a solution in months. It could technically be approved with 5 ratings?
wat
Just realised this guy is rank 49 on CW and cheating Oo
Hey, I fixed the Clojure version now.
Added these test cases to confirm:
Loading more items...