ValueRecord[] valueRecords =newValueRecord[nums.length];for(inti =0; i<nums.length;i++){ ValueRecord valueRecord =newValueRecord(); valueRecord.value= nums[i]; valueRecords[i] = valueRecord; } List<Integer>path=newArrayList<>(); dfs(nums,path, valueRecords, result);returnresult; }/*...