You are viewing a single comment's thread. Return to all comments →
public static int marsExploration(string s) { const string SOS = "SOS"; var count = 0; for(int i = 0; i < s.Length; i++){ var msgLetter = s[i]; var rightSosLetter = SOS[i%3]; count += Convert.ToInt32(msgLetter != rightSosLetter); } 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 →
. . .