Skip to content

Comments

Add solution for Longest Substring Without Repeating Characters#912

Merged
ghostmkg merged 1 commit intoghostmkg:mainfrom
Piyush-Kumar62:add-longest-unique-substring
Oct 12, 2025
Merged

Add solution for Longest Substring Without Repeating Characters#912
ghostmkg merged 1 commit intoghostmkg:mainfrom
Piyush-Kumar62:add-longest-unique-substring

Conversation

@Piyush-Kumar62
Copy link
Contributor

Added a Java solution for finding the longest substring without repeating characters.

  • Uses sliding window + HashMap and ASCII optimization.
  • Returns both length and one example substring.
  • Handles edge cases like empty strings and repeated chars.
  • Tested with multiple sample inputs.

Folder: Java/Strings
Language: Java
Hacktoberfest ready ✅

@ghostmkg ghostmkg merged commit f792764 into ghostmkg:main Oct 12, 2025
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.

2 participants