Skip to content

Commit e21e2be

Browse files
committed
Add time and space complexity
1 parent 7dfed67 commit e21e2be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coin-change/bky373.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// time: O(n * m), where n is the amount and m is the number of coins
2+
// space: O(n)
13
class Solution {
24

35
public int coinChange(int[] coins, int amount) {

0 commit comments

Comments
 (0)