mirror of
https://bitbucket.org/Mattrixwv/projecteulerts.git
synced 2025-12-06 17:43:59 -05:00
Added solution to problem 20
This commit is contained in:
@@ -43,11 +43,12 @@ import { Problem16 } from "./Problems/Problem16";
|
||||
import { Problem17 } from "./Problems/Problem17";
|
||||
import { Problem18 } from "./Problems/Problem18";
|
||||
import { Problem19 } from "./Problems/Problem19";
|
||||
import { Problem20 } from "./Problems/Problem20";
|
||||
|
||||
|
||||
export class ProblemSelection{
|
||||
//Holds the valid problem numbers
|
||||
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19];
|
||||
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
|
||||
|
||||
//Returns the problem corresponding to the given problem number
|
||||
public static getProblem(problemNumber: number): Problem{
|
||||
@@ -72,6 +73,7 @@ export class ProblemSelection{
|
||||
case 17: problem = new Problem17(); break;
|
||||
case 18: problem = new Problem18(); break;
|
||||
case 19: problem = new Problem19(); break;
|
||||
case 20: problem = new Problem20(); break;
|
||||
}
|
||||
return problem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user