Concept Flow - First Non Repeating Character Using Hash
Start with input string
Create empty hash map for counts
For each char in string
Increment char count in hash
For each char in string again
Check if char count is 1?
No→Continue
Yes
Return this char as first non repeating
If none found, return special value
We count each character's occurrences using a hash map, then find the first character with count 1.
