This is a skeleton project structure which will help you start solving the problem right away.
- Go 1.22
- 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.
- The executable will be built by the command
go build .
. - This command will create an executable
golang-interview
.
- To run, issue the command
./golang-interview '<input 1>' '<input 2>'
where input is a valid input given in the problem statement. - For example:
./golang-interview 'PLACE_ORDER 101 Apple 5' 'TOTAL_COST 101'
Note: Each full command should be wrapped in single quotes.