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.
its very unclear what ur trying to say but i get the idea
this gave me a headache
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I used
bisect
to efficiently find the breaking point between negative and non-negative numbers in the sorted list, and then filtered the elements to count the positives and sum the negatives. Your approach is more efficient because you don't need to sort the array.First i tried dividing by 4 to see what it would give me, then i realized that i could round up if i divided by 3.