Added solution to problem 32

This commit is contained in:
2021-05-28 15:22:40 -04:00
parent b72b0d2e0c
commit da0434d6c1
2 changed files with 165 additions and 1 deletions

View File

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