You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,22 @@ This is a skeleton project structure which will help you start solving the probl
5
5
## Tools available to you.
6
6
- Node.js
7
7
8
-
## Checking for correctness
8
+
## How to build your solution
9
+
10
+
- Run `npm ci --include=dev` to install the dependencies.
11
+
- Run `tsc --project tsconfig.json` to compile the typescript code.
12
+
13
+
## Running the project
9
14
10
-
- You can click on the `Run IO` button from the interview application, which will run your solution against some preconfigured inputs and show you the output.
15
+
- After building your solution as per [How to build your solution](#how-to-build-your-solution) you can now run the `main.js` against inputs.
16
+
- To run, issue the command `cd dist && node main.js '[cmd [options...]' 'cmd [options...]'...]` where
17
+
-**cmd** is a valid problem specific command.
18
+
-**options** are optional **cmd** specific options.
- To run, issue the command `node main.ts '<input 1>' '<input 2>'` where **input** is a valid input given in the problem statement.
15
-
- For example: `node main.ts 'PLACE_ORDER 101 Apple 5' 'TOTAL_COST 101'`
22
+
Note: Each full command should be wrapped in single quotes(').
23
+
24
+
## Checking for correctness
16
25
17
-
Note: Each full command should be wrapped in single quotes.
26
+
- You can click on the `Run IO` button from the interview application, which will run your solution against some preconfigured inputs and show you the output.
0 commit comments