Skip to content

Commit

Permalink
refactor: complexity of coin change
Browse files Browse the repository at this point in the history
  • Loading branch information
minji-go authored Jan 3, 2025
1 parent ab5674b commit d55d0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coin-change/minji-go.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Problem: https://leetcode.com/problems/coin-change/
Description: return the fewest number of coins that you need to make up that amount
Concept: Array, Dynamic Programming, Breadth-First Search
Time Complexity: O(), Runtime 15ms - N is the amount
Space Complexity: O(N), Memory 44.28MB
Time Complexity: O(NM), Runtime 15ms - M is the amount
Space Complexity: O(M), Memory 44.28MB
*/
class Solution {
public int coinChange(int[] coins, int amount) {
Expand Down

0 comments on commit d55d0f7

Please sign in to comment.