leetle

Daily challenge for 2026-02-12

408. Clear the Backspace Strings

Given a string s containing lowercase letters and '#' characters, where '#' represents a backspace, return the final string after all backspaces have been applied. If a backspace is applied to an empty string, the string remains empty.

Example:
Input: s = "ab#c" Output: "ac".

Run this challenge interactively in Python or JavaScript when the app loads.