You are viewing a single comment's thread. Return to all comments →
Python 1 liner.
return len([c for i, c in enumerate(s) if c != 'SOS'[i % 3]])
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 →
Python 1 liner.