Skip to content

Conversation

@purnasth
Copy link
Contributor

Pull Request: Resolve String Comparison with Backspace Characters Issue

Description

This pull request addresses issue #141 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

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 #141

@godkingjay godkingjay self-requested a review October 21, 2023 09:27
@godkingjay godkingjay added hacktoberfest-accepted Hacktoberfest participation. hacktoberfest Hacktoberfest issue. solution labels Oct 21, 2023
@godkingjay godkingjay changed the title Solve Backspace string compare with JavaScript [844] Solve Backspace string compare with JavaScript Oct 21, 2023
@godkingjay godkingjay merged commit 02a39a0 into godkingjay:master Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Hacktoberfest issue. hacktoberfest-accepted Hacktoberfest participation. solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PROBLEM] 844. Backspace String Compare

2 participants