Added solution to problem27

This commit is contained in:
2021-05-24 14:09:37 -04:00
parent 59512d8f93
commit e622d3500d
2 changed files with 144 additions and 1 deletions

View File

@@ -50,12 +50,13 @@ import { Problem23 } from "./Problems/Problem23";
import { Problem24 } from "./Problems/Problem24";
import { Problem25 } from "./Problems/Problem25";
import { Problem26 } from "./Problems/Problem26";
import { Problem27 } from "./Problems/Problem27";
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];
21, 22, 23, 24, 25, 26, 27];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -87,6 +88,7 @@ export class ProblemSelection{
case 24: problem = new Problem24(); break;
case 25: problem = new Problem25(); break;
case 26: problem = new Problem26(); break;
case 27: problem = new Problem27(); break;
}
return problem;
}