Skip to content

Commit 41db4f2

Browse files
committed
Runtime: 4 ms (Top 50.03%) | Memory: 44.5 MB (Top 32.12%)
1 parent 60aece3 commit 41db4f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 4 ms (Top 50.03%) | Memory: 44.5 MB (Top 32.12%)
12
class Solution {
23
public int[] finalPrices(int[] prices) {
34
for(int i = 0; i < prices.length; i++){
@@ -6,8 +7,8 @@ public int[] finalPrices(int[] prices) {
67
prices[i] -= prices[j];
78
break;
89
}
9-
}
10+
}
1011
}
1112
return prices;
1213
}
13-
}
14+
}

0 commit comments

Comments
 (0)