Added solution to problem 11

This commit is contained in:
2021-03-25 01:15:07 -04:00
parent 6a95030e72
commit 34ec8be7c5
2 changed files with 203 additions and 1 deletions

View File

@@ -34,11 +34,12 @@ import { Problem7 } from "./Problems/Problem7";
import { Problem8 } from "./Problems/Problem8";
import { Problem9 } from "./Problems/Problem9";
import { Problem10 } from "./Problems/Problem10";
import { Problem11 } from "./Problems/Problem11";
export class ProblemSelection{
//Holds the valid problem numbers
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -54,6 +55,7 @@ export class ProblemSelection{
case 8 : problem = new Problem8(); break;
case 9 : problem = new Problem9(); break;
case 10: problem = new Problem10(); break;
case 11: problem = new Problem11(); break;
}
return problem;
}