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 b146788 commit 2d6e8c8Copy full SHA for 2d6e8c8
src/main/java/com/fishercoder/solutions/_638.java
@@ -55,7 +55,7 @@ public int shopping(List<Integer> price, List<List<Integer>> special, List<Integ
55
}
56
ArrayList<Integer> clone = new ArrayList(needs);
57
int j = 0;
58
- for (j = 0; j < special.get(i).size() - 1; j++) {
+ for (; j < special.get(i).size() - 1; j++) {
59
int diff = clone.get(j) - special.get(i).get(j);
60
if (diff < 0) {
61
break;
0 commit comments