Backspace String Compare - C++ Solution @ LeetCode
Backspace String Compare, is a LeetCode problem. In this post we will see how we can solve this challenge in C++
Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.
Input: S = "ab#c", T = "ad#c" Output: true Explanation: Both S and T become "ac".
Input: S = "ab##", T = "c#d#" Output: true Explanation: Both S and T become "".
You can find the full details of the problem Backspace String Compare at LeetCode
Solution: Please check the main.cpp snippet for the solution.
This solution originally posted at: Github by @kamyu104