Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 443 Bytes

File metadata and controls

13 lines (10 loc) · 443 Bytes

Problem 10: Retroactive Erasure (Backspace String Compare)

Problem Statement

Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the text will continue empty.

Input Format

  • Two strings s and t.

Example

Input: s = "ab#c", t = "ad#c"
Output: True
Explanation: Both become "ac".