Added new problems

This commit is contained in:
2022-08-20 16:03:31 -04:00
parent 51447fcbb2
commit a79e60f0fe
22 changed files with 860 additions and 15 deletions

View File

@@ -211,7 +211,7 @@ public class Problem11 extends Problem{
@Override
public String getResult(){
solvedCheck("result");
return String.format("The greatest product of 4 numbers in a line is %d%nThe numbers are %s", ArrayAlgorithms.getProd(greatestProduct), greatestProduct.toString());
return String.format("The greatest product of 4 numbers in a line is %d\nThe numbers are %s", ArrayAlgorithms.getProd(greatestProduct), greatestProduct.toString());
}
//Returns the numbers that were being searched
public List<Integer> getNumbers(){