Added solution to problem 25

This commit is contained in:
2021-04-08 13:48:07 -04:00
parent 3e570ef4e1
commit 57ec17142f
3 changed files with 127 additions and 2 deletions

View File

@@ -48,12 +48,13 @@ import { Problem21 } from "./Problems/Problem21";
import { Problem22 } from "./Problems/Problem22";
import { Problem23 } from "./Problems/Problem23";
import { Problem24 } from "./Problems/Problem24";
import { Problem25 } from "./Problems/Problem25";
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, 24];
21, 22, 23, 24, 25];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -83,6 +84,7 @@ export class ProblemSelection{
case 22: problem = new Problem22(); break;
case 23: problem = new Problem23(); break;
case 24: problem = new Problem24(); break;
case 25: problem = new Problem25(); break;
}
return problem;
}