Back Clear
# Your Problem: # Count recursively the total number of "abc" and "aba" substrings that # appear in the given string. # # # countAbc("abc") → 1 # countAbc("abcxxabc") → 2 # countAbc("abaxxaba") → 2 # # 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 getCountAbc(str:str) -> int: # CODE END # Press Ctrl+E (Command+E on mac) to test your code