网站介绍:来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/first-unique-character-in-a-string/题目:方法一:使用哈希表存储频数class Solution {public: int firstUniqChar(string s) { unordered_map<int, int> frequency; for (char ch: s) { ++_c++力扣 387字符串中的第一个唯一字符
- 链接地址:https://tangxing.blog.csdn.net/article/details/119078172
- 链接标题:[LeetCode C++] 387. 字符串中的第一个唯一字符_c++力扣 387字符串中的第一个唯一字符_超级大洋葱806的博客-CSDN博客
- 所属网站:tangxing.blog.csdn.net
- 被收藏次数:9663
- 网站标签:c++力扣 387字符串中的第一个唯一字符