1. Two Sum(e-1)Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may ...
题目一https://leetcode.com/problems/longest-substring-without-repeating-characters/求一个字符串中,最长无重复字符子串长度解题:求子串和子数组的问题:先求以0结尾的答案,然后求1结尾的答案1)当前字符串上一次出现的位置2)i-1位置往左推的距离两个条件,哪个长要哪个public static int lengthOfLongestSubstring(String s) { if (s .