Untitled

 avatar
unknown
plain_text
a year ago
225 B
7
Indexable
Given a string, find the first non-repeating character in it and return its index. If it doesn't exist, return -1.
Example Input: s = "leetcode"
Example Output: 0 (The first non-repeating character is 'l' and its index is 0.)
Editor is loading...
Leave a Comment