We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6b684 commit e9cabeeCopy full SHA for e9cabee
coin-change/GangBean.java
@@ -13,7 +13,6 @@ public int coinChange(int[] coins, int amount) {
13
- time: O(CA), where C is the length of coins, A is amount value
14
- space: O(A), where A is amount value
15
*/
16
- Arrays.sort(coins);
17
18
int[] dp = new int[amount + 1];
19
for (int i = 1; i <= amount; i++) {
0 commit comments