Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 415 Bytes

File metadata and controls

12 lines (9 loc) · 415 Bytes

Problem 5: Keypress Correction

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".