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.
perfectly
I mean it is simple and clever, but in a big teams sometimes happens that other coders could read such short expressins wrong. misunderstanding. for example here if you use parseInt(inputString[0]) it would be more visual recognisable according to task discription.
Apologies, but can you please explain what is difficult to understand?
Very clever, but such disisions are difficult for understanding by others if you work in a big team...human factor is coming)
Excellent !
that is all there is!!
good one
I love short code <3
I believe this is fixed now.
That's brilliant!!
I literally smiled after understanding how this works. thank you!
My guess would be that
filter
creates a new array and populates it, whilereduce
just generates a single number.It's converting the mean into an index for the string.
In C, a string is null-terminated by definition. All
string.h
functions assume this. If you pass garbage tostrlen()
then it will spin through memory until it finds a'\0'
or generates a segmentation fault.This comment is hidden because it contains spoiler information about the solution
Loading more items...