Explanation:
We use a dictionary to count the frequency of each character.
Then, we iterate through the string to find the first character with a count of 1.
If none is found, return -1.
Download
0 formats
No download links available.
First Unique Character in a String in C# | NatokHD