Problem 3174 · Easy

Clear Digits

Scan left to right with a stack of letters: each digit deletes the closest letter to its left, which is the top of the stack.

Open the interactive visualisation