题目:
给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。
思路:
1 双重for 循环 比较
2 hashmap key 存字符,value 存出现次数 再次遍历找出第一个次数为1的
(一)代码 HashMap
work