When I use string instead of a character array here , it works fine otherwise gives TLE for one test case.
Sanket and string
@prateek_5 its always better to use stl as they are fast. constraints must be too tight thats why its happening
1 Like
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.