Added solution to problem 7

This commit is contained in:
2021-03-10 12:30:04 -05:00
parent 0161203fc9
commit 9cfd907b76
2 changed files with 91 additions and 1 deletions

View File

@@ -30,11 +30,12 @@ import { Problem3 } from "./Problems/Problem3";
import { Problem4 } from "./Problems/Problem4";
import { Problem5 } from "./Problems/Problem5";
import { Problem6 } from "./Problems/Problem6";
import { Problem7 } from "./Problems/Problem7";
export class ProblemSelection{
//Holds the valid problem numbers
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6];
public static PROBLEM_NUMBERS: number[] = [1, 2, 3, 4, 5, 6, 7];
//Returns the problem corresponding to the given problem number
public static getProblem(problemNumber: number): Problem{
@@ -46,6 +47,7 @@ export class ProblemSelection{
case 4 : problem = new Problem4(); break;
case 5 : problem = new Problem5(); break;
case 6 : problem = new Problem6(); break;
case 7 : problem = new Problem7(); break;
}
return problem;
}