Added solution to problem 36

This commit is contained in:
2021-06-29 16:15:24 -04:00
parent cdaa1807ab
commit e517cf63a4
3 changed files with 116 additions and 2 deletions

View File

@@ -59,13 +59,14 @@ import { Problem32 } from "./Problems/Problem32";
import { Problem33 } from "./Problems/Problem33";
import { Problem34 } from "./Problems/Problem34";
import { Problem35 } from "./Problems/Problem35";
import { Problem36 } from "./Problems/Problem36";
import { Problem67 } from "./Problems/Problem67";
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, 33, 34, 35, 67];
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 67];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -106,6 +107,7 @@ export class ProblemSelection{
case 33: problem = new Problem33(); break;
case 34: problem = new Problem34(); break;
case 35: problem = new Problem35(); break;
case 36: problem = new Problem36(); break;
case 67: problem = new Problem67(); break;
}
return problem;