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.
Changes from version 1.
Removed friends array as its not needed since I can just itterate over string with spaces just as if it was an array.
Removed variables which is a trade off on readibility vs number of lines.
Note scale should be 5 not 2, forgot to change it..
someone needs to go over answears and delete all the garbage that doesn't use while loop
4 is the first multiple of 2 and 4
12 is also missing ... etc
this is bad solution not sure why would anyone upvote this ....
very nice solution...
you should try using functions such as map, reduce, fold instead of using forEach.
DOESN"T WORK ...
Map call is not needed as factorials can be calculated inside fold .
bad solution ... what if n is 100+? this wont work....
The sample test is not working and the example in the instructions has got a different name of function than in the code.
I see the point of ambiguity if yellow could lead to both red or green, so forget the suggestion.
Oh that makes sense .... thank you
It's mentioned in the kata description so it's fair game.
If you choose not to read kata description and let your own knowledge override the kata instead, well... ;-)
kyu
ranking goes from 8 to 1 in ascending difficulty. I think you've got it reversed ;-)How is this 8 kyu????? this is 2 at best....
Loading more items...