Skip to content

Commit 2a462ab

Browse files
author
weizhaoquan
committed
两数之和
1 parent 7325aec commit 2a462ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/cn/byhieg/arithmetic/TwoSum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static int[] twoSum2(int[] nums, int target) {
3535
public static void main(String[] args) {
3636
int[] nums = {2,7,11,15};
3737
int taget = 9;
38-
int[] ints = twoSum1( nums, taget );
38+
int[] ints = twoSum2( nums, taget );
3939
System.out.printf( Arrays.toString(ints) );
4040
}
4141
}

0 commit comments

Comments
 (0)