Mars Exploration

  • + 0 comments

    Here is my one line Python solution!

    def marsExploration(s):
        return len([True for letter in range(len(s)) if s[letter] != ["S", "O", "S"][letter % 3]])