I used Map then Also I am getting TLE in Some Test Cases , Pls Correct My Code

https://ide.codingblocks.com/s/416924 - My Code

https://cses.fi/problemset/task/1140 - Question

hello @yashratnani6

try using unordered map .
if still it didnt pass .
then see last section of this blog->link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.