← ALL NOTES
String

3174. Clear Digits

Given a string s of digits and lowercase letters. Operation: delete the first digit and the closest non-digit to its left. Repeat while digits remain. Return the resulting string.

Loading…