Skip to content

Conversation

@purnasth
Copy link
Contributor

Pull Request: Resolve String Comparison with Backspace Characters Issue

Description

This pull request addresses issue #60 by providing a JavaScript solution for comparing two strings, considering the presence of backspace characters ('#'). The goal is to determine whether the two strings are equal when both are typed into empty text editors, accounting for the effect of backspaces.

Solution Details

  • I have implemented a JavaScript function that takes two input strings, s and t.
  • The function processes the input strings while considering backspace characters.
  • It returns true if the processed strings are equal when both are typed into empty text editors, considering the backspaces. Otherwise, it returns false.

Attachments

image
image

Additional Notes

The solution aims to address the issue effectively by providing a JavaScript function that accurately compares two strings while handling backspace characters. If any further adjustments or specific guidelines are needed, please provide your feedback.

Closes #60

@Chayandas07 Chayandas07 merged commit 901f0d8 into Chayandas07:main Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Backspace String Compare Problem JavaScript

2 participants