mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -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
|
++xLoc; //Advance the x location to simulate going right
|
||||||
//Check if x is out of bounds
|
//Check if x is out of bounds
|
||||||
if(xLoc < list.get(yLoc).size()){
|
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