I get the output ide but on submission it shows run-error
Sanket and strings
Hey @aan, since size of input string could be as large as 10^5 size of character array q should also be greater than equal to 10^5 and when you are iterating over q in line 16 and 26 you should include condition that i < len.
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.