This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sherlockString(s): | |
# Split string into list of characters | |
_s = list(s) | |
# Initialize our dictionary with key: letter, value: number of occurence | |
dict = {} | |
# Iterate through string | |
for item in _s: | |