mirror of
https://bitbucket.org/Mattrixwv/projecteulerts.git
synced 2025-12-06 17:43:59 -05:00
Added solution for problem 24
This commit is contained in:
@@ -47,12 +47,13 @@ import { Problem20 } from "./Problems/Problem20";
|
||||
import { Problem21 } from "./Problems/Problem21";
|
||||
import { Problem22 } from "./Problems/Problem22";
|
||||
import { Problem23 } from "./Problems/Problem23";
|
||||
import { Problem24 } from "./Problems/Problem24";
|
||||
|
||||
|
||||
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, 20,
|
||||
21, 22, 23];
|
||||
21, 22, 23, 24];
|
||||
|
||||
//Returns the problem corresponding to the given problem number
|
||||
public static getProblem(problemNumber: number): Problem{
|
||||
@@ -81,6 +82,7 @@ export class ProblemSelection{
|
||||
case 21: problem = new Problem21(); break;
|
||||
case 22: problem = new Problem22(); break;
|
||||
case 23: problem = new Problem23(); break;
|
||||
case 24: problem = new Problem24(); break;
|
||||
}
|
||||
return problem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user