Find it question

https://ide.codingblocks.com/s/188136 i think my code is right please look and suggest changes

@sgdon142 update following in your code:

  1. initialize array s[LIMIT] with all value 0.
    2 start your for loop from i=1 not from i=2 since k can be 1.

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.