Compare Two Strings After Deletions

easy
1. Compare the two strings s and t
  2. String contians lowercase letters and '#' character
  3. '#' deletes the previous one character
  4. After deletions compare the strings and return true if they are equal and
     return false if not.

Input Format

two strings s and t given and input are handled for you

Output Format

a boolean value

Constraints

1 <= s.length <= 200
  1 <= t.length <= 200
  s and t only contain lowercase letters and '#' characters.

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
zb#e
zd#e
Output
true
Previous
Next Warmer Day
Next
Stack Supporting Minimum Operation

Related Questions