Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Adjacent Letters by kazuki.h
from itertools import pairwise
def adjacent_letters(letter):
for idx, (i, j) in enumerate(pairwise(letter)):
if i == j: return adjacent_letters(letter[:idx] + letter[idx+2:])
return letter
Sept. 13, 2022
Comments: