无重复字符的最长子串
Leecode上的题目
无重复最长子串
class Solution {
public int lengthOfLongestSubstring(String s) {
if (s.length()==0) return 0;
HashMap<Character, Integer> map = new HashMap<Character, Integer>();
int max = 0;//最长子串长度
int
原创
2021-03-14 18:04:07 ·
84 阅读 ·
0 评论