Cant understand the problem in code
@neelrai906 in your code ur trying to find the largest substring only starting with zero index position zero , but it can start from any index position
for example
string-babaaaaba
and k=1;
your code give output-4
but correct answer will be 6
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.
please make the changes in the code
If I’ll do the changes how will you learn. Don’t focus on quantity. Focus on quality.