Added solution to problem 30

This commit is contained in:
2021-05-28 14:01:27 -04:00
parent 383be25f29
commit 197639b845
3 changed files with 136 additions and 2 deletions

View File

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