Mars Exploration

  • + 0 comments

    def marsExploration(s): # Write your code here repetitions = len(s) // 3 sos_str = "SOS" * repetitions

    dissimilar_count = sum(1 for a, b in zip(s, sos_str) if a != b)
    return dissimilar_count