摘要: class Solution { public: int lengthOfLongestSubstring(string s) { unordered_set<char> hash; //哈希表判断重复字符 int n = s.size(); int rk = -1 , ans = 0; for(i 阅读全文