Back Clear
# Your Problem: # Given a string, return recursively a "cleaned" string where adjacent chars # that are the same have been reduced to a single char. So "yyzzza" yields # "yza". # # # stringClean("yyzzza") → "yza" # stringClean("abbbcdd") → "abcd" # stringClean("Hello") → "Helo" # # 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 getStringClean(str:str) -> str: # CODE END # Press Ctrl+E (Command+E on mac) to test your code