摘要:
Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutati 阅读全文
posted @ 2020-09-02 05:28
Schwifty
阅读(127)
评论(0)
推荐(0)
摘要:
把上题的2换成k即可 public int lengthOfLongestSubstringKDistinct(String s, int k) { if (s == null || s.length() == 0 || k == 0) { return 0; } char[] sArr = s.t 阅读全文
posted @ 2020-09-02 05:00
Schwifty
阅读(171)
评论(0)
推荐(0)
摘要:
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters. Example 1: Input: "eceba" Output: 3 Explana 阅读全文
posted @ 2020-09-02 04:59
Schwifty
阅读(124)
评论(0)
推荐(0)

浙公网安备 33010602011771号