this app takes an array of numbers return possible combinations where sum of two number will be equals to third number.
for eg if array is [4,6,3,10,9,16]
combination would be
4+6=10
6+3=9,
6+10=16
Make sure you have the following tools installed on your machine before running this project:
- Node 8.11.4 or higher (always choose Node LTS releases when possible)
- NPM 5.6.0 or higher
- Git
Once you have all the tools listed above:
- Run
git clone https://github.com/Sandeeprao69/FindTripletWithMocha.git && cd FindTripletWithMocha
- run
npm i
for installing all dependencies needed.
-run node index.js
- it will prompt for array
- please enter a valid array for eg - [1,2,3]
-run npm run test
in your terminal