Code works well but memory limit is exceeded

code:- https://ide.codingblocks.com/s/667477

hi @yamangoyal100_ff74db54bdf01539 make arrays of size 10^5 not 10^6 thats giving MLE

sir i reduced the size of arrays to 10^3 it still gives the error memory limit exceeded.
code : -> https://ide.codingblocks.com/s/667477

hi @yamangoyal100_ff74db54bdf01539 i was talking about count and output array

still didnt work , still memory limit exceed

@yamangoyal100_ff74db54bdf01539,


working for me, please check

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.



code link:->https://ide.codingblocks.com/s/667477

see , same problem.

hi @yamangoyal100_ff74db54bdf01539, im running the same code its runnnig fine … try in some other editor