Please check code for Class Assignment problem


Not passing all test cases

hello @sahilkhan2312000131

check now->

improve this furthur (find function is O(N) ).
use char array or indexing over string , in place of adding or removing character to save time

check the optimised one, the idea is to generate only valid strings so that we dont have to use find function.

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.