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 🤷🏻♂️
This comment is hidden because it contains spoiler information about the solution
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.
I don't think that it's fair to use third party library for the binary search implementation. Clever, but unfair.
Loading collection data...
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 🤷🏻♂️
This comment is hidden because it contains spoiler information about the solution
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.
I don't think that it's fair to use third party library for the binary search implementation.
Clever, but unfair.