Skip to content

Commit

Permalink
Update 4Sum.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhanshurav authored Dec 29, 2022
1 parent 9750808 commit 3d4f16a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

vector<vector<int>> fourSum(vector<int>& nums, int target) {

vector<vector<int>> res;

if(nums.empty()) return res;
Expand Down Expand Up @@ -35,7 +36,7 @@ vector<vector<int>> res;
while(j+1 < n && nums[j+1] == nums[j]) ++j;
}
while(i+1 < n && nums[i+1] == nums[i]) ++i;
}
}

return res;

Expand Down

0 comments on commit 3d4f16a

Please sign in to comment.