Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Process string <code>s</code> from left to right, if <code>s[i]</code> is a digit, mark the nearest unmarked non-digit index to its left.
Delete all digits and all marked characters.
Solve with full IDE support and test cases