What is the error with this code?
I have been able to solve this problem with tries, I want to know how to solve it with maps.
DIGITAL DICTIONARY
Hey @AbhilashaBansal
Your code seems logically correct
I tried it on test cases
It is only failing cases where N is 10^5
So the issue might be due to memory limit exceeded or something which is not being shown
But your code is fine I can assure you that
So just move on to next questions I’ll suggest
Alright, thanks bhaiya!
1 Like