📦 javascript-algorithms/ trekhleb
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
Установка и запуск
How to use this repository
Install all dependencies
npm install
Run ESLint
You may want to run it to check code quality.
npm run lint
Run all tests
npm test
Run tests by name
npm test -- 'LinkedList'
Troubleshooting
If linting or testing is failing, try to delete the node_modules folder and re-install npm packages:
rm -rf ./node_modules
npm i
Also, make sure that you're using the correct Node version (>=16). If you're using nvm for Node version management you may run nvm use from the root folder of the project and the correct version will be picked up.
Playground
You may play with data-structures and algorithms in ./src/playground/playground.js file and write
tests for it in ./src/playground/__test__/playground.test.js.
Then just, simply run the following command to test if your playground code works as expected:
npm test -- 'playground'
Из README репозитория · полный README на GitHub