Skip to content

Commit 8a2b53a

Browse files
committed
Remove test file Solution.java, add overflow comment
1 parent 2c68d49 commit 8a2b53a

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

Solution.java

-21
This file was deleted.

TwoSum.java

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public int[] twoSum(int[] numbers, int target) {
1717
vals[i] = new PosVal(i+1, numbers[i]);
1818
Arrays.sort(vals, new Comparator<PosVal>() {
1919
public int compare(PosVal l, PosVal r) {
20+
// overflow/underflow !!
2021
return l.val - r.val;
2122
}
2223
});

0 commit comments

Comments
 (0)