class Solution { public: int lengthOfLongestSubstring(string s) { int maxlen = 0; unordered_map<char, int> map; ...