Mike ans hashtrick

Can you please tell me what is wrong with my code.

Hey @rahul.gupta03111999
On line 8 you are allocating too much space thats why u are getting segmentation error

Also u dont have to replicate the given code but fo the same in optimized version which u have to write on your own otherwise it will give u TLE

Hey @rahul.gupta03111999
Is this resolved ?

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.