This is a solution to the second assigment on a programming interview
For this to run you will need:
- Node.js (latest)
- At least 1 GB of unused ram if parsing large files
- before you can run it you need to do an
npm ito install all needed libaries
Just clone the repo and your done with init.
node --expose-gc --max-old-space-size=2048 index.js <file path>
the --expose-gc flag lets the programm controll the garbage collector and --max-old-space-size=2048 flag sets increases heap memory size to 2GB
Written by Jan Max Tiedemann
see licence