Skip to content

Commit 5f86f5f

Browse files
committed
015 (3) clean up solution
1 parent 85e2576 commit 5f86f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_015_3Sum/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public List<List<Integer>> threeSum(int[] nums) {
5252
right--;
5353
} else {
5454
// found one combination
55-
result.add(new ArrayList<>(Arrays.asList(num, nums[left], nums[right])));
55+
result.add(Arrays.asList(num, nums[left], nums[right]));
5656
while (left + 1 < right && nums[left] == nums[left + 1]) {
5757
left++;
5858
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy