• total < 0?!

Question related to mission Shorter Set


The preconditions say:

the second argument is between -1000 and 1000.

If no one complains, I'll create a pull request that demands `0 <= total < 1000`

Outside of check.io a way to give negative values a meaningful meaning might be:
check that "removing -2 items" and then "removing +2 items" yields in the original set.
Something like: "remove_min_max( remove_min_max(data, - postotal), postotal) == data" for any postotal > 0

I wonder if there are other ideas how to deal with negative values besides the trivial solution "tread them like 0"