Skip to content

Commit 274e467

Browse files
authored
refac: remove useless condition check
ꡳ이 ν•„μš”μ—†λŠ” ν™•μΈμœΌλ‘œ μ˜μ‹μ μΈ 이해가 ν•œκ°œ 더 ν•„μš”ν•œ 상황 λ°œμƒ
1 parent 0e55211 commit 274e467

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

β€Žcoin-change/heozeop.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ class Solution {
2020
continue;
2121
}
2222

23-
if (dp[i - coin] == MAX_VALUE) {
24-
continue;
25-
}
26-
2723
dp[i] = min(1 + dp[i - coin], dp[i]);
2824
}
2925
}

0 commit comments

Comments
Β (0)