Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0642914

Browse files
Update two_sum.js
1 parent 68073f7 commit 0642914

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎algorithms/two_sum.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function twoSum(arr, sum){
2323

2424
}
2525

26-
twoSum([1, 5, 3, 8, 6, 12, 9, 4], 7);
26+
const arr = [1, 5, 3, 8, 6, 12, 9, 4];
27+
twoSum(arr, 7);
2728

2829

2930

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /