摘要: 啊,是较简单的一题呢。有一些操作再熟悉一下。 思路就是建立一个HashMap用于计数,然后再遍历就行。时间空间复杂度都是ON 自己写的代码如下: class Solution { public int firstUniqChar(String s) { HashMap<Character,Integ 阅读全文
posted @ 2020-06-24 22:16 将来的事 阅读(170) 评论(0) 推荐(0)