segmentation error
Prateek love candy
segmentation fault occurs because you have taken n>10^5
make it 10^5 it will run
i am unable to get it , can u plz correct the same in my code and chk it
which line u have changed?
29
i have reduce one zero
but in the ques, the constraints was 10^6
and also i am still unable to pass one test case
sry,all test case passed but ques demand for 10^6 why?
but max array size is <10^6
no it is less then 10^5 check it again or mark the line
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.