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.
nice way hehehe didn't thought of it
I guess because of the readability (altho I've done pretty much the same thing xD)
This comment is hidden because it contains spoiler information about the solution
why is this not best practice ?
This one is lit 🔥
only people like you would think this basis js code as 'presumptuous'
"Presumptuous" and "narcissistic", really? Calm down lol.
Imagine having to debug 2000 lines of the guy's code. This kind of presumptuous, narcissistic makes the job suck. Don't write smartass code, write readable and efficient code. This, i would delete it instantly.
This is quite good solution if you look code wise but time complexity wise it is not! You're iterating over the same array 3 times.
A Good solution would be with normal for-loop
You're fired! 🤓
awesome, solution
You can make it even shorter with input?.length. Btw it's pretty readable, idk why others complaining lol
Didnt realize of this answer... god
I believe that array is itterated through 3 times. this will be slow when data size grows.
Creative!
Loading more items...