I got "Submission Result: Wrong Answer" due to following test case,
can anybody explain the expected behavior?
Input:
[1,1,2,2,3,3]
2
Output:
[1,2]
Expected:
[1,3]
Error in test case?

This output may likely come when we store the count of the numbers in a heap. So the heap may look like this [1,2,3] . So when the first max element is removed , 1 is removed and then heap looks like [3,2,1] then max is removed , 3 is removed. Hence the output. Testcases should accept multiple possible outputs.
