-
Install Python from python.org.
-
Clone the repository:
git clone https://github.com/orielsanchez/nytimes-digits.git
- Change the project directory:
cd nytimes-digits
- Install the required dependencies:
pip install -r requirements.txt
To use the nytimes-digits tool, run the nytimes-digits.py script with the appropriate command-line arguments.
python nytimes-digits.py -n [NUMBERS] -t [TARGET] [-s [SOLUTIONS]]
Arguments:
-n or --numbers: Input numbers separated by spaces. -t or --target: Target number. -s or --solutions (optional): Number of solutions to display (default: 10).
Example usage:
python nytimes-digits.py -n 1 2 3 4 5 10 -t 65 -s 5
This will find the order of operations to reach the target number 65 using the input numbers 1, 2, 3, 4, 5, and 10. It will display the first 5 solutions, if available.
This project is licensed under the MIT License. See the LICENSE file for more details.