You are viewing a single comment's thread. Return to all comments →
i have a doubt... if(i>-1 && str[i] == str[i+1]) i didnt use i>-1 but solved the challenge. what is the significance of i>-1
Seems like cookies are disabled on this browser, please enable them to open this website
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
i have a doubt... if(i>-1 && str[i] == str[i+1]) i didnt use i>-1 but solved the challenge. what is the significance of i>-1