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.
.
Seems like fixed
The second test case was checking
[], 1
instead of[], 0
which should return false.Fixed the error message.
An empty array will only return true when the sum required is zero.
Added an example in the description.
Random tests added.
Could you resolve the issue if the test cases are good now?
too few test cases allows answers that would fail the requirements with certain arguments.
The example doesn't make sense with the test cases. You can't have negative people or people that need a negative amount of papers. I would suggest modifying either the test cases or the example or stipulate that the answer should handle erroneous input.
Could you post your solution and mark it as having spoiler content, thanks :)
This comment is hidden because it contains spoiler information about the solution