【leetcode】387 字符串中的第一個惟一字符(字符串)

題目連接:https://leetcode-cn.com/problems/first-unique-character-in-a-string/web 題目描述 給定一個字符串,找到它的第一個不重複的字符,並返回它的索引。若是不存在,則返回 -1。svg 案例:spa s = "leetcode" 返回 0. s = "loveleetcode", 返回 2. 代碼 class Solutio
相關文章
相關標籤/搜索