Pixel · Easy CodeFree
The Wizard's Autocorrect
An apprentice wizard types a spell on an enchanted typewriter. Its "helpful" autocorrect thinks two identical neighbouring letters are a typo and deletes both. What spell is left at the end?
Print the spell that is left. If nothing is left, print EMPTY.
The spell must be exactly right.
S, the letters the apprentice types, in order, with no spaces.EMPTY.S ≤ 400 000S has only small letters a to z.abbaca
ca
Sign in to play. It is free.
Sign in