Skip to content

Commit 9ee3ab3

Browse files
committed
chore: lint
1 parent 3c26ea7 commit 9ee3ab3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

coin-change/whewchews.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ function coinChange(coins: number[], amount: number): number {
88
* coins를 순회하면서 누적액에 동전을 더한 값이 amount보다 작으면 queue에 넣는다.
99
* queue가 빌때까지 반복
1010
* 큐가 비어있고 amount를 만들수 없으면 -1을 return
11-
*/
12-
const queue = [[0, 0]]; // [number of coins, accumulated amount]
11+
*/ const queue = [[0, 0]]; // [number of coins, accumulated amount]
1312
const visited = new Set();
1413

1514
while (queue.length > 0) {
@@ -28,6 +27,6 @@ function coinChange(coins: number[], amount: number): number {
2827
}
2928
}
3029
return -1;
31-
// TC: 각 금액(amount)마다 동전(coins)을 순회하므로 O(N*M) N: amount, M: coins.length
32-
// SC: O(N) N: amount
3330
}
31+
// TC: 각 금액(amount)마다 동전(coins)을 순회하므로 O(N*M) N: amount, M: coins.length
32+
// SC: O(N) N: amount

0 commit comments

Comments
 (0)