This numerical puzzle originates from the Turkish Intelligence Foundation sent to Will Shortz by Turkish puzzler Metin Orsel.
No crossing digits - Valid | Crossing digits - Valid | Reusing digits - Invalid |
---|---|---|
125 + 478 = 690 (false) | 152 + 478 = 690 (false) | 125 + 485 = 690 (Invalid) |
- First you start with a any digit on a telephone keypad.
- Then you move to another digit adjacent from the previous digit either: horizontally, vertically or diagonally.
- Continue the process until you have 9-digits total.
- When you have collected your 9-digits the number formed from the first 3-digits plus the second 3-digits will equal the last 3-digits.
- You may not use the same digit more than once.
- You may only use digits adjacent to each other.
Optional: To make things more difficult check to make sure adjacent digits do not cross paths.
This repository contains the solution to the phonepad problem in 2-languages: C++ and Typescript. To figure out how to build and run the projects continue reading below. I highly recommend you try to solve this problem yourself first.
This project assumes cmake
and make
are on your PATH variable.
- Open a command/terminal window in the project root directory.
- enter
cd .cmake; cmake .; make
This project assumes you have Node.js
, NPM
, and Gulp
installed globally.
- Open a command/terminal window in the project root directory.
- enter
npm install; gulp start