leetle

Daily challenge for 2026-02-22

418. Backspace String Comparison Sim

Given a string s containing lowercase letters and '#' characters, return the final string after processing all backspaces. A '#' character represents a backspace, meaning it removes the character immediately to its left. If there is no character to remove, the backspace is ignored.

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

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