1 testcase failed

I have done the problem using unordered_map in O(n) , despite that 1 testcase failed. Why ???

Hey @ritikverma0599 ,
can you also provide your solution code so that i can look where the error is .

Hey @ritikverma0599 ,
The specifies of the problem will give error at large values of n so i would suggest you to try and reduce the time complexity.
If you still have any problem please provide the code along with the question .
Happy Coding