Doubt in Dictionary Order (Larger)

3 test cases are getting failed - https://ide.codingblocks.com/s/395706

Please help me out.

Hello @gambhirrahul0 please wait i am checking your code:

Have you gone through it?

Hello @gambhirrahul0 your logic is perfectly fine and it was just the array length issue so to rectify that i have used vector now:
see this is the corrected code:


if you have any doubt you can ask here:

Happy Learning!!

Will you please make necessary changes in my code? I mean it’s giving the right ans then why the test cases are getting failed?

@gambhirrahul0 see this code:
https://ide.codingblocks.com/s/395948
you can mark this doubt as resolved:
Happy Learning!!

Thanks! I’m marking this doubt as resolved.

@gambhirrahul0 okay.
Happy Learning!!