Added solution to problem 37

This commit is contained in:
2021-07-02 00:47:32 -04:00
parent e517cf63a4
commit ad2e948a42
3 changed files with 173 additions and 2 deletions

View File

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