mirror of
https://bitbucket.org/Mattrixwv/projecteulerjava.git
synced 2025-12-06 17:13:58 -05:00
Fixed a bug when running multiple times
This commit is contained in:
@@ -27,9 +27,10 @@ public class Problem31 extends Problem{
|
|||||||
private int permutations;
|
private int permutations;
|
||||||
public Problem31(){
|
public Problem31(){
|
||||||
super("How many different ways can 2 pounds be made using any number of coins?");
|
super("How many different ways can 2 pounds be made using any number of coins?");
|
||||||
permutations = 0;
|
|
||||||
}
|
}
|
||||||
public void solve(){
|
public void solve(){
|
||||||
|
permutations = 0;
|
||||||
|
|
||||||
//Start the timer
|
//Start the timer
|
||||||
timer.start();
|
timer.start();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user