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

Create Longest_Substring_Without_Repeating_Characters.cpp #12

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

RohithaAiswarya16
Copy link
Contributor

Added a new solution file Longest_Substring_Without_Repeating_Characters.cpp, which implements a C++ program to find the length of the longest substring without repeating characters in a given string. This program uses a sliding window approach along with a hash map to store the last seen index of each character, allowing for efficient tracking of unique substrings.

The code takes user input for the string and outputs the maximum length of any substring without duplicate characters. Comments and an example are included for clarity.

Added a new solution file Longest_Substring_Without_Repeating_Characters.cpp, which implements a C++ program to find the length of the longest substring without repeating characters in a given string. This program uses a sliding window approach along with a hash map to store the last seen index of each character, allowing for efficient tracking of unique substrings.

The code takes user input for the string and outputs the maximum length of any substring without duplicate characters. Comments and an example are included for clarity.
Copy link

👋 @RohithaAiswarya16
Thank you for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.

@github-actions github-actions bot added the hacktoberfest Opted for hacktoberfest label Oct 31, 2024
Copy link
Contributor

@iamwatchdogs iamwatchdogs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the required changes so that linting checks would pass.

…/Longest_Substring_Without_Repeating_Characters.cpp

Co-authored-by: Shamith <[email protected]>
@RohithaAiswarya16
Copy link
Contributor Author

Thank you for the updated code! I’ve applied all the suggested changes and pushed the updates. Please review and let me know if further adjustments are needed.

Copy link
Contributor

@iamwatchdogs iamwatchdogs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and Approved by @iamwatchdogs.

@iamwatchdogs iamwatchdogs merged commit c670a80 into Grow-with-Open-Source:main Nov 1, 2024
6 checks passed
Copy link

github-actions bot commented Nov 1, 2024

Thank you for contributing @RohithaAiswarya16. Make sure to check your contribution on GitHub Pages.

@iamwatchdogs iamwatchdogs added the hacktoberfest-accepted Successfully accepted pull request for hacktoberfest label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Opted for hacktoberfest hacktoberfest-accepted Successfully accepted pull request for hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants