Added solution to problem14

This commit is contained in:
2021-03-26 14:27:05 -04:00
parent 1087d2b0e7
commit f9522b13d6
2 changed files with 132 additions and 1 deletions

View File

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