Minimum Window Substring &&& Longest Substring Without Repeating Characters
2020-12-13 05:35
标签:style blog http color os io for art Minimum Window Substring &&& Longest Substring Without Repeating Characters 快慢指针,都不会退,用hashmap或者其他结构保证,搜素材,soscw.com Minimum Window Substring &&& Longest Substring Without Repeating Characters 快慢指针,都不会退,用hashmap或者其他结构保证 标签:style blog http color os io for art 原文地址:http://www.cnblogs.com/hansongjiang/p/3873807.html
1
public class Solution {
2 public static int lengthOfLongestSubstring(String s) {
3
4 char[] arr = s.toCharArray();
5 int pre = 0;
6
7 HashMap 1 public class Solution {
2 public String minWindow(String S, String T) {
3 char s[]=S.toCharArray();
4 if(S=="")return "";
5 int beg=0;
6 int end=0;
7 int d[]=new int[128];
8 int size=0;
9 for(int i=0;i
文章标题:Minimum Window Substring &&& Longest Substring Without Repeating Characters
文章链接:http://soscw.com/essay/31251.html