Skip to content

Commit d55d0f7

Browse files
authored
refactor: complexity of coin change
1 parent ab5674b commit d55d0f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coin-change/minji-go.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Problem: https://leetcode.com/problems/coin-change/
33
Description: return the fewest number of coins that you need to make up that amount
44
Concept: Array, Dynamic Programming, Breadth-First Search
5-
Time Complexity: O(), Runtime 15ms - N is the amount
6-
Space Complexity: O(N), Memory 44.28MB
5+
Time Complexity: O(NM), Runtime 15ms - M is the amount
6+
Space Complexity: O(M), Memory 44.28MB
77
*/
88
class Solution {
99
public int coinChange(int[] coins, int amount) {

0 commit comments

Comments
 (0)