Updated for performance

This commit is contained in:
2020-06-18 01:24:50 -04:00
parent c25a1e095e
commit f4bdb66590

View File

@@ -323,7 +323,7 @@ public class Problem67 extends Problem{
++xLoc; //Advance the x location to simulate going right
//Check if x is out of bounds
if(xLoc < list.get(yLoc).size()){
possiblePoints.add( new location(xLoc, yLoc, minLoc.total + list.get(yLoc).get(xLoc), false));
possiblePoints.add(new location(xLoc, yLoc, minLoc.total + list.get(yLoc).get(xLoc), false));
}
}
}