coding_wizard04's blog

By coding_wizard04, history, 4 hours ago, In English

I submitted a solution to Maximize Mex 2021B. I am getting "Runtime Error" which says "Exit code is 3". I am getting the error for test case 2 and test case is not visible

Submission Link : 298011073

Kindly help , this has been my unsolved since long time. Thanks in advance.

»
4 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

I think the tmp array is not keeping correct frequency of elements and try to maintain a map instead of vector

»
4 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Exit code is 3 means there is a path problem.So it's probably a problem from the judge's side .

I tried resubmitting and got Memory limit exceeded on test 2

Try rewriting the code