不要问我菜不菜
不要问我菜不菜
全部文章
题解
归档
标签
去牛客网
登录
/
注册
不要问我菜不菜的博客
全部文章
/ 题解
(共2篇)
题解 | #字符串流第一个不重复的字符#
对哈希表、代码的实现能力均需要提高。 class Solution { public: //Insert one char from stringstream map<char,int> m1; char cur = ' '; int index = 0; ...
C++
哈希表
2021-12-15
0
344
题解 | #第一个只出现一次的字符#哈希查找的思想
public: int FirstNotRepeatingChar(string str) { vector<int> m1(58,0); for(int i = 0; i < str.size(); i++){ ...
C++
哈希表
2021-12-08
0
226