You are viewing a single comment's thread. Return to all comments →
mine is simpler:
int marsExploration(char* s) { int r = 0; char *test = "SOS"; for (int i = 0; s[i]; i++) if (s[i] != test[i % 3]) r++; return r; }
Mars Exploration
You are viewing a single comment's thread. Return to all comments →
mine is simpler: