I am pretty sure that the logic (find the pairs that are occuring the most) I have used is correct but I am getting a wrong answer. Can some tell me what's wrong with my code or provide a counter test case . Any help is appreciated.
I am pretty sure that the logic (find the pairs that are occuring the most) I have used is correct but I am getting a wrong answer. Can some tell me what's wrong with my code or provide a counter test case . Any help is appreciated.
Why the downvotes??
or provide a counter test caseWhy don't you just see it for youself (it is opened)? If you think
But it is too longthen in verdict you can seewrong answer 1st numbers differ - expected: '124', found: '128'(1st number, and this input is clearly fully visible)Didn't read neither code nor problem, but countercase is accessible in your case.
Oh yes it is available. I thought the full testcase isn't available. Didn't scroll or swipe the testcase window. Thanks for the reply.