import java.util.*; public class Solution { /** * * @param arr int整型一维数组 the array * @return int整型 */ public int maxLength (int[] arr) { // write code here HashMap<Integer, Integer> hash = new HashMap<>(); int max = 0; int i = 0, j = 0; for (; i < arr.length; i++) { // if(hash.contain...