Skip to content

Commit e9cabee

Browse files
committed
refactor: remove coins sorting
1 parent 9c6b684 commit e9cabee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

coin-change/GangBean.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public int coinChange(int[] coins, int amount) {
1313
- time: O(CA), where C is the length of coins, A is amount value
1414
- space: O(A), where A is amount value
1515
*/
16-
Arrays.sort(coins);
1716

1817
int[] dp = new int[amount + 1];
1918
for (int i = 1; i <= amount; i++) {

0 commit comments

Comments
 (0)