Added solution to problem 38

This commit is contained in:
2021-11-11 21:54:02 -05:00
parent 69e6b866f0
commit ffae2713a1
2 changed files with 119 additions and 1 deletions

View File

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