mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-07 01:23:56 -05:00
Updated for performance
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user