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.
OP solved it, closing
In the Notes section of the description for this kata it says that there is a preloaded dictionary you can use, named NATO.
just because you can, and others can learn the features of JS (or other languages).
In real work you shouldnt make everything one-liners, you should make code as clear to read for others as possible, at the same time not making it too long. But here we are for the purpose of training and learning language.
This comment is hidden because it contains spoiler information about the solution
Premature optimisation is a terrable thing, when they come with such a request I will simply refactor
To solve katas surely trains your brain, perhaps encourages you to learn different languages and enables to compare different code, so it probably helps you to "think algorithmic";-)... It's not the same as working on large real projects (often simple code, not really algorithmic problems, but many different steps, interfaces, frameworks, ...). I'm here to have "some fun" which allows to produce really bad code, short code, strange code, different code, a.s.o.;-) without intension to work like a developer;-).
To solve katas surely trains your brain, perhaps encourages you to learn different languages and enables to compare different code, so it probably helps you to "think algorithmic";-)... It's not the same as working on large real projects (often simple code, not really algorithmic problems, but many different steps, interfaces, frameworks, ...). I'm here to have "some fun" which allows to produce really bad code, short code, strange code, different code, a.s.o.;-) without intension to work like a developer;-).
One week later...? It's science fiction and not the task of this kata;-)... and perhaps you confuse katas and real projects;-)?
Subarray does not have to include multiple values; just one is enough.
I searched there and didn't find it. In your first line print the array (console.log(arr)) and press attempt. After that we could check if the array is exactly as you say
I tried to do it in JavaScript however I dind't find any test case with these sequence: -47, 5, -29, -34.Anyway your result -24 is correct.
Can't you print the input?
This expression represents the physical meaning of the first derivative.
See omegahm's explanation (first best solution)
This comment is hidden because it contains spoiler information about the solution