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.
COBOL translation.
if the number of positives = 0 (i.e no positive numbers) and sum of negatives = 0 (i.e no negative numbers), there are only two possible input arrays:
List consisting of zero's only, which has been covered in the example test cases
List is empty, which has been covered by
One of the tests seems to expect that if number of positives == 0 and sumOfNegatives == 0 we should return an empty array. That was nowhere in the description and I had to guess that that is what the test wants. Would be nice if you could update description that this is expected.
This explanation from njxue should be added to the description of the kata - the actual description of the Kata is confusing. Thanks nxjue!
Sorry but you are wrong: 6/9 is 2/3 and 60 is divisible by 3.
One of the tests is:
But 60 is not divisible by 9 so the answer should be
(90,180)(144,180)(135,180)(120,180)(126,180)
This comment is hidden because it contains spoiler information about the solution
same issue, even though iam outputting with to_char