What to do next in the code given below?
Hey @kailash_01 there were many small mistakes in your code
- you were comp j with /0 instead of s[j]
- you weren’t breaking when s[j] wasnt equal to s[i]
- i should have been incremented count-1 times before ending single iteration
Here is the link of the code with the mistakes rectified https://ide.codingblocks.com/s/178831
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.