Dev
Mentor
Coach Interview AI
Mock Interview AI
Coding Problems
Blog
Pricing
Toggle theme
Sign In
Get Started
Toggle theme
Loading...
For the best coding experience, use a desktop browser.
Easy
Two Pointers
Backspace String Compare
Given two strings with '#' meaning backspace, return if they are equal when typed.
Examples
Input:
s = "ab#c", t = "ad#c"
Output:
true
Sample Test Cases
Case 1 Input:
"ab#c" "ad#c"
Expected:
true
Case 2 Input:
"ab##" "c#d#"
Expected:
true
Reset
Run
Submit
Loading editor...
Test Case
Output
Submission
Case 1 Input:
"ab#c" "ad#c"
Expected:
true
Case 2 Input:
"ab##" "c#d#"
Expected:
true