Skip to content

Commit

Permalink
Merge pull request kdn251#16 from UWarbs/patch-2
Browse files Browse the repository at this point in the history
Rearrange mixed up comments
  • Loading branch information
kdn251 authored Mar 15, 2017
2 parents 54388b6 + ac7efbf commit 4aaa8c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Company/Google/3SumSmaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ public int threeSumSmaller(int[] nums, int target) {
//increment the count by the distance between left and right because the array is sorted
count += right - left;

//decrement right pointer
//increment left pointer
left++;

}

//if they sum to a value greater than target...
else {

//increment left pointer
//decrement right pointer
right--;

}
Expand All @@ -59,4 +59,4 @@ public int threeSumSmaller(int[] nums, int target) {

}

}
}

0 comments on commit 4aaa8c1

Please sign in to comment.