Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3223. Minimum Length of String After Operations #500

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KK-is-Coding
Copy link

Pull Request Template

Description

We have given a string s.

We have to perform the following process on s any number of times:

Choose an index i in the string such that there is at least one character to the left of index i that is equal to s[i], and at least one character to the right that is also equal to s[i].
Delete the closest character to the left of index i that is equal to s[i].
Delete the closest character to the right of index i that is equal to s[i].
Return the minimum length of the final string s that you can achieve.

Put check marks:

Have you made changes in README file ?

  • [ *] Added problem & solution under correct topic.
  • [* ] Specified Space & Time complexity.
  • [ *] Specified difficulty level, tag & Note(if any).

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • Test A
  • Test B

Make sure all below guidelines are followed else PR will get Reject:

  • [* ] My code follows the style guidelines of this project
  • [ *] I have performed a self-review of my own code
  • [* ] I have commented my code so that it is easy to understand
  • [* ] I have made corresponding changes to the documentation
  • [ *] My changes generate no new warnings
  • [ *] Any dependent changes have been merged and published in downstream modules

Copy link

welcome bot commented Jan 13, 2025

I can tell this is your first pull request! Thank you I'm so honored. 🎉🎉🎉 I'll take a look at it ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant