-
Notifications
You must be signed in to change notification settings - Fork 8
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
Create Longest_Substring_Without_Repeating_Characters.cpp #12
Conversation
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.
👋 @RohithaAiswarya16 |
There was a problem hiding this 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.
...st_Substring_Without_Repeating_Characters/Longest_Substring_Without_Repeating_Characters.cpp
Outdated
Show resolved
Hide resolved
…/Longest_Substring_Without_Repeating_Characters.cpp Co-authored-by: Shamith <[email protected]>
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. |
There was a problem hiding this 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.
Thank you for contributing @RohithaAiswarya16. Make sure to check your contribution on GitHub Pages. |
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.