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.
I think tests should be tougher because this kata is really easy and there is no need to take advantage of the fact that the array is sorted.
There should be more test cases with
sum = 0
andA
containing negative integers to invalidate thisAs mentioned below, this is basically fusc, which is a duplicate.
Are you testing points on the boundary return false? Otherwise the note about the open disk is not relevant.
This looks suspiciously like The fusc function -- Part 2 from a year before this one.
f(0)
is different, that's all.How is this not a duplicate?