Solutions for Part 1 of Glints Software Engineer Coding Test
Time it took to finish task: 1 hour and 45 minutes
-
Open the terminal, and go to the task1 folder inside the project using
cd
. -
Inside the task1 folder are five files, namely: the
task1.js
file and the four input.txt
files. To run the script and pass on one of the.txt
files as input, runnode task1.js [input file]
inside the terminal. -
For example, if I want the
input1.txt
file as an input for the script, I will runnode task1.js input1.txt
Note: The .txt
files inside the task1 folder contain all the sample inputs in the challenge's GitHub Gist.
Time it took to finish task: 1 hour and 55 minutes
-
Open the terminal, and go to the task2 folder inside the project using
cd
. -
Inside the task2 folder are five files, namely: the
task2.js
file and the four input.txt
files. To run the script and pass on one of the.txt
files as input, runnode task2.js [input file]
inside the terminal. -
For example, if I want the
input2.txt
file as an input for the script, I will runnode task2.js input1.txt