Skip to content

Commit afab31f

Browse files
author
owen
committed
fix : jsdoc 추가 및 기초 코드 로 수정
1 parent 2ac4518 commit afab31f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

two-sum/Kyojin-Hwang.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
function twoSum(nums, target) {
1+
/**
2+
* @param {number[]} nums
3+
* @param {number} target
4+
* @return {number[]}
5+
*/
6+
var twoSum = function (nums, target) {
27
const map = new Map();
38

49
for (let i = 0; i < nums.length; i++) {
@@ -10,4 +15,4 @@ function twoSum(nums, target) {
1015

1116
map.set(nums[i], i);
1217
}
13-
}
18+
};

0 commit comments

Comments
 (0)