LeetCode刷題記錄+題解彙總Java實現(二)

leetcode003 無重複字符的最長子串 給定一個字符串,請你找出其中不含有重複字符的 最長子串 的長度。 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 思路:滑動窗口+HashMap 輸入: 「pwwkew」 輸出: 3 解釋: 由於無重複字符的最長子串是 「wke」,因此其長
相關文章
相關標籤/搜索