#387
First Unique Character in a String
easy · 65.1% accepted · 9,750 likes · top 69%
hash table · string · queue · counting
Description
Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.
Solution