leetle

Daily challenge for 2026-03-14

438. Simplify Backspace String

Given a string s containing lowercase letters and '#' characters which represent backspaces, return the final string after all backspaces have been applied. A backspace on an empty string leaves it empty.

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

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