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.
savage!!!!!!!!
regrex
My mind exploded
I wonder how it passed tests. Won't pass for 18 and similar cases where you have to get minimum sum.
Also fails on 16 due to there is no checks for zero 🤷🏻♂️
Thanks, I really need to brush up on my RegEx.
Seems like a clever solution, but not very easy to read.
This comment is hidden because it contains spoiler information about the solution
I have no clue as to how this works, can someone explain?
wow i cant imagine
Mind,blown. That's thinking out of the box
Protip:
https://github.com/Codewars/codewars-runner-cli/blob/master/documentation/environments/node.md
CrazyMerlyn,
I agree. Since I tried to solve it all by myself, I was slightly disappointed to see that lodash is available here. Didn't mean to offend you, sorry.
And smart programmers (like me) will have a stash of snippets to copy and paste for these kind of regularly emerging scenarios anyway :P, so it's really the same thing.
Meh, I could have implemented it myself, but why do that when a library is provided? It's not like the problem was asking for an implementation of binary search.
I don't think that it's fair to use third party library for the binary search implementation.
Clever, but unfair.
I see what you did there