Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 269 Bytes

notes_2025.md

File metadata and controls

13 lines (11 loc) · 269 Bytes

Need review

  • Problem 3. 无重复字符的最长字串(sliding window, hash)

Hash

    // check existence
    map<char, int> counter;
    if(counter.find(ch) == counter.end())
        // not found
    
    // erase
    counter.erase(ch)