leetle

Daily challenge for 2025-09-04

247. Backspace String Compare

Write a function solve that, given two strings s and t containing lowercase letters and '#', returns true if they are equal after processing backspaces (where '#' deletes the previous character, if any).

Example:
Input: s = 'ab#c', t = 'ad#c'
Output: true

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