You are viewing a single comment's thread. Return to all comments →
C Solution:
int marsExploration(char* s) { int count=0,i=0; char SOS[]="SOS"; while(*s){ if(i>=3){ i=0; } if(SOS[i]!=*s){ count++; } i++; s++; } 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 →
C Solution: