Skip to content

Commit 5db8204

Browse files
jagdish-15kahgoh
andauthored
Update exercises/practice/change/.approaches/dynamic-programming/content.md
Co-authored-by: Kah Goh <[email protected]>
1 parent f76ad5d commit 5db8204

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/change/.approaches/dynamic-programming

1 file changed

+1
-1
lines changed

exercises/practice/change/.approaches/dynamic-programming/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ It minimizes the number of coins needed by breaking down the problem into smalle
6363

6464
The time complexity of this approach is **O(n * m)**, where `n` is the `grandTotal` and `m` is the number of available coin denominations. This is because we iterate over all coin denominations for each amount up to `grandTotal`.
6565

66-
- **Space Complexity**: The space complexity is **O(n)** due to the list `coinsUsed`, which stores the most efficient coin combination for each total up to `grandTotal`.
66+
The space complexity is **O(n)** due to the list `coinsUsed`, which stores the most efficient coin combination for each total up to `grandTotal`.

0 commit comments

Comments
 (0)