Skip to content

Improve FirstNonRepeatedChar.java: Add authoritative references, input validation, and more test cases#793

Merged
ghostmkg merged 1 commit intoghostmkg:mainfrom
Piyush-Kumar62:improve-first-non-repeated-char
Oct 10, 2025
Merged

Improve FirstNonRepeatedChar.java: Add authoritative references, input validation, and more test cases#793
ghostmkg merged 1 commit intoghostmkg:mainfrom
Piyush-Kumar62:improve-first-non-repeated-char

Conversation

@Piyush-Kumar62
Copy link
Contributor

What’s improved

  • Added references to LeetCode and GeeksforGeeks for further reading and credibility.
  • Enhanced comments and documentation for clarity.
  • Added robust input validation for null and empty strings.
  • Included more diverse test cases (repeated, unique, empty, single-char, null input).
  • Preserved O(n) time and space complexity and clean logic.

References

This makes the solution robust, instructive, and ideal for DSA learners and Hacktoberfest contributors.

@ghostmkg ghostmkg merged commit 2713429 into ghostmkg:main Oct 10, 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