public class Solution { /** * * @param arr int整型一维数组 the array * @return int整型 */ public int maxLength (int[] arr) { // write code here HashSet<integer> se = new HashSet<>();//定义一个HashSet,用来判断有没有重复的数字 int l = 0,r = 0;//定义两个指针,左指针和右指针 int c...