This README provides instructions for running the solutions to various coding problems included in this repository.
For this project, we will assume that you are already in the project's directory.
To run the solution for Problem 1, follow these steps:
- Open a terminal window.
- Navigate to the directory containing the solution for Problem 1 using the following command:
cd problem-1
- Run the solution script using Node.js by entering the following command:
node solution.js
- Follow the prompts displayed in the terminal to provide input as required by the solution.
- Once the solution has finished executing, review the output displayed in the terminal.
To run the solution for Problem 2, follow these steps:
- Open a terminal window.
- Navigate to the directory containing the solution for Problem 2 using the following command:
cd problem-2
- Import or create your input file to the problem-2 directory. File should be named
input.txt
- Run the solution script using Node.js by entering the following command:
node solution.js
This executes the script and creates an output.txt
file in the problem 2 directory.
This file contains the result of the solution.