 All Problems
Backspace String Compare
easy
strings
stack
two pointers
amazon
google
facebook

Given two strings s and t where '#' represents a backspace, return true if they are equal after processing all backspaces.

Example 1:

Input:
ab#c
ad#c
Output: true

Example 2:

Input:
a#c
b
Output: false

Input format: Line 1: s. Line 2: t.

Output format: true or false.

Run to check your code against the sample cases, or submit to run every case