Skip to content

Commit fc56819

Browse files
fix three lines
1 parent d5cef9d commit fc56819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data-Structures/Array/2Sum.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function twoSum(nums, target) {
2222
map.set(nums[i], i);
2323
}
2424

25-
return null; // No two sum solution
25+
return []; // Return an empty array when no solution is found
2626
}
2727

2828
export { twoSum }

0 commit comments

Comments
 (0)