class Solution { public: /** * * @param arr int整型vector the array * @return int整型 */ int maxLength(vector<int>& arr) { // write code here if(arr.size()<=1) return arr.size(); int res=0; int i=0,j=0; unordered_map<int,int> hashmap; for(;i<arr.size();i++){ if(hashmap.count(arr[i]...