Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Combining Celebrity Names by ssk8
import re
v = re.compile(r"[aeiou]+")
def brangelina(first: str, second: str) -> str:
r = [[c.span()[i] for c in v.finditer(n)] for i, n in enumerate((first, second))]
return first[:r[0][~(len(r[0]) > 1)]] + second[r[1][0]-1:]
Feb. 17, 2024
Comments: