Back Clear
# Your Problem: # Given a string, compute recursively a new string where identical chars that # are adjacent in the original string are separated from each other by a "*". # # # pairStar("hello") → "hel*lo" # pairStar("xxyy") → "x*xy*y" # pairStar("aaaa") → "a*a*a*a" # # Credit for this problem goes to Nick Parlante from CodingBat.com # Do not modify anything outside of the function or the function itself. # CODE START def getPairStar(str:str) -> str: # CODE END # Press Ctrl+E (Command+E on mac) to test your code