Added solution to problem 13

This commit is contained in:
2021-03-26 14:01:46 -04:00
parent f56540a670
commit 1087d2b0e7
2 changed files with 303 additions and 1 deletions

View File

@@ -36,11 +36,12 @@ import { Problem9 } from "./Problems/Problem9";
import { Problem10 } from "./Problems/Problem10";
import { Problem11 } from "./Problems/Problem11";
import { Problem12 } from "./Problems/Problem12";
import { Problem13 } from "./Problems/Problem13";
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];
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -58,6 +59,7 @@ export class ProblemSelection{
case 10: problem = new Problem10(); break;
case 11: problem = new Problem11(); break;
case 12: problem = new Problem12(); break;
case 13: problem = new Problem13(); break;
}
return problem;
}