You are viewing a single comment's thread. Return to all comments →
My Javascript solution here:
function marsExploration(s: string): number { const expected = "SOS".repeat(s.length / 3).split(""); return expected.reduce((acc, curr, i) => acc + +(curr !== s[i]), 0); }
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 →
My Javascript solution here: