You are viewing a single comment's thread. Return to all comments →
int count=0; string d; for(int i=0;i<s.length();i=i+3) { d+="SOS"; } for(int i=0;i<d.length();i++) { if(d.at(i)!=s.at(i)) { count++; } } return count; }
Seems like cookies are disabled on this browser, please enable them to open this website
Mars Exploration
You are viewing a single comment's thread. Return to all comments →