First Unique Character in a String — October 16, 2026
Given a string s, find the first nonrepeating character in it and return its index. If it does not exist, return 1. The string s will only contain lowercase English letters. 1 <= s.length <= 10^5 Example 1: Input: s = "leetcode" Output: 0 Example 2: Input: s = "loveleetcode" Output: 2 Example 3: Inp
