找到字符串的最長無重複字符子串

【題目】給定一個字符串str,返回str的最長無重複子串的長度。java 【要求】若是str的長度爲N,請實現時間複雜度爲O(N)的方法。web public class MaxUnique { public static int getMaxUnique(String str) { if (str == null || str.equals("")) { return 0; }
相關文章
相關標籤/搜索