Untitled

Anonymous
plain_text
03/27/2024 9:48 AM
300 B
20
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