The solution for the questions is inside the Solution folder
Part 1
For Part 1, as we are reading .JSON file so I am using JavaScript to complete this task.
To run the code,
- Both the .json and .js files should be in the same directory
- To run, in a terminal type, node part01.js
- We can change the input by changing the inputs variable in the part01.js file
Part 2
For Part 2, I am using Java. I feel more comfortable using Java to solve DSA questions.
To run the code,
- I am using Eclipse
- We can change the input by changing the input1 or input2 in the main method