there is a run error in 2 of the testcases. Please check it. I think it is related to the size of the array as it is too big. What shall i do in it’s place? This is the code:- https://ide.codingblocks.com/s/215654
Run error coming
sir its been 2 days and no one is replying
as you know, its related to size of the array. you can use bitset data type to cope up with these kind of situation.
updated code: https://ide.codingblocks.com/s/217362
thanks
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.
sir even your code is giving segmentation fault on ide
ok it worked on submitting