Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
recursive solution in Clear category for Split Pairs by juestr
def split_pairs(a):
l = len(a)
if l == 0:
return []
if l == 1:
return [a + '_']
else:
return [a[:2]] + split_pairs(a[2:])
July 6, 2019
Comments: