Skip to content

Commit d380f3b

Browse files
authored
Update Solution.java
1 parent 5507e18 commit d380f3b

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g1701_1800/s1770_maximum_score_from_performing_multiplication_operations

1 file changed

+0
-3
lines changed

src/main/java/g1701_1800/s1770_maximum_score_from_performing_multiplication_operations/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
// #Medium #Array #Dynamic_Programming #2022_04_30_Time_31_ms_(92.41%)_Space_53.2_MB_(88.74%)
44

55
public class Solution {
6-
76
public int maximumScore(int[] nums, int[] mult) {
87
int n = nums.length;
98
int m = mult.length;
109
int row = m;
1110
int[] dp = new int[m];
1211
int[] prev = new int[m + 1];
13-
1412
while (--row >= 0) {
1513
for (int i = 0; i <= row; ++i) {
1614
dp[i] =
@@ -20,7 +18,6 @@ public int maximumScore(int[] nums, int[] mult) {
2018
}
2119
prev = dp;
2220
}
23-
2421
return dp[0];
2522
}
2623
}

0 commit comments

Comments
 (0)