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.
You have two 1 in the first one and two -1 in the other.
The description fails to mention that the arrays in the solution should only contain unique values.
with this line:
you do not allocate enough memory for an array of
int
of lengthlength_in
. the size of an array is not equal to its length, unless the array elements happen to have a size of one byte, which is not the case forint
.Please use the
question
tag to ask for help next timeYour allocated buffer is too small.
Please see: https://docs.codewars.com/references/markdown#code-block and post the code again, formatted in a readable way.
Would you be so kind to at least post your code, so we could check what is the problem with it? please remember about code blocks and spoiler flag!
Dennis, if you got the time and your solution at hand, please try it again. I think the problem is fixed...
I'll look at this in depth when at home, I'm very limited on the smartphone.
possibly test suite is broken , then...
would you mind posting your attempt?
edit: think I found the .mistake the namespace problem indeed is in the test suite. unable to solve it immediately ...
This comment is hidden because it contains spoiler information about the solution
You are not supposed to "subtract" any rectangle from another. You are merely supposed to figure out the total area covered by at all.