Skip to content

Instantly share code, notes, and snippets.

@blisst
blisst / equalsWhenOneCharRemoved.py
Last active September 12, 2019 01:36
Ryan Johnson - Moloco String Equals when One Char Removed
def equalsWhenOneCharRemoved(x, y):
# Can't be different in length by more than 1
if (abs(len(x) - len(y)) > 1):
return False
# Iterate through X and Y together
diffFound = 0;
lenX = len(x)