Added solution to problem 33

This commit is contained in:
2021-05-28 15:53:51 -04:00
parent da0434d6c1
commit 36b0e1fca9
2 changed files with 164 additions and 1 deletions

View File

@@ -56,12 +56,13 @@ import { Problem29 } from "./Problems/Problem29";
import { Problem30 } from "./Problems/Problem30";
import { Problem31 } from "./Problems/Problem31";
import { Problem32 } from "./Problems/Problem32";
import { Problem33 } from "./Problems/Problem33";
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, 25, 26, 27, 28, 29, 30, 31, 32];
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -99,6 +100,7 @@ export class ProblemSelection{
case 30: problem = new Problem30(); break;
case 31: problem = new Problem31(); break;
case 32: problem = new Problem32(); break;
case 33: problem = new Problem33(); break;
}
return problem;
}