65. First Unique Character in a String

Return the index of the first unique character in the string.
Example 1
Input: s = "leetcode"
Output: 0
Explanation:
Example 2
Input: s = "aabb"
Output: -1
Explanation: There are no unique characters, so -1 is returned.
easyhash tablestrings
JavaScript
Loading...
Line 1, Char 1