Invalid Constraints in Monday Munch Contest

In the problem Unique Subset in todays Monday Munch Contest the constraints say that the parameter “multiset” is sorted in non-decreasing order. But I don’t think that this is the case. My code only passes when manually sorting first. I quickly figured this out because I don’t trust any constraints during these tests anymore. Please quickly fix this and somehow avoid those really frustrating errors in the future!

My apologies for this error. I’ve realised some test cases weren’t following the sorted array order so I’ve removed the statement specifying a sorted array. I’ll definitely try to avoid these mistakes in future tests as well.

1 Like