Added isPandigital function

This commit is contained in:
2021-10-11 12:57:57 -04:00
parent 648c48a39d
commit c558d5b8d8
3 changed files with 74 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
//typescriptClasses/TestAlgorithms.ts
//Matthew Ellison
// Created: 10-19-20
//Modified: 07-13-21
//Modified: 10-11-21
//This class holds many algorithms that I have found it useful to keep around
/*
Copyright (C) 2021 Matthew Ellison
@@ -23,7 +23,7 @@ Copyright (C) 2021 Matthew Ellison
import { testArrayEquals, testGetSum, testGetProd } from "./TestArrayAlgorithms";
import { testFactorial, testGCD, testGetAllFib, testGetDivisors, testGetFactors, testGetFib, testGetNumPrimes, testGetPrimes, testIsPrime, testSieveOfEratosthenes, testSqrtBig, testToBin } from "./TestNumberAlgorithms";
import { testFindNumOccurrences, testGetPermutations, testIsPalindrome } from "./TestStringAlgorithms";
import { testFindNumOccurrences, testGetPermutations, testIsPalindrome, testIsPandigital } from "./TestStringAlgorithms";
//Run the array tests
@@ -49,5 +49,6 @@ testToBin();
testGetPermutations();
testIsPalindrome();
testFindNumOccurrences();
testIsPandigital();
console.log("All tests passed");