Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.14 KB

cryptarithm-solver Build Status

A javascript solution to a CryptArithmetic puzzle

Problem definition

In the multiplication problem below, each letter represents a UNIQUE digit. Write a script to find all possible solutions. The final output of the script should generate the total number of unique solutions and should display each solution in the format below with the digits replaced.

        FUN
  x     BBQ
        ---------------
        SUMMER 

How to test the script

  1. Clone the repository and cd into the project folder
  2. Ensure that you have node installed to be able to use npm and to also run the application
  3. Install Packages npm install
  4. Run node script.js to view the solution
  5. Run npm test -- --coverage to run the test modules

Technologies

  1. JavaScript (Node.js, npm)
  2. Jest for tests
  3. TravisCI for continous Integration

credits

Script written in response to a challenge by Ideas Come To Life

License

MIT - Feel free to use in part or whole