Welcome to the LeetCode Algorithm Solutions repository! This repository contains my personal solutions to a variety of algorithmic challenges from LeetCode. The problems cover different topics such as data structures, dynamic programming, sorting, searching, and more.
Each solution is placed in its own directory named after the LeetCode problem number and title. The folder contains:
- Solution file(s): Code implementations of the algorithm.
- Test cases: Examples or custom test cases to validate the solution. How to start tests:
- ├── 0000-example-task-name
- ├── solution.ts (It's a file with solution of task)
- ├── goodSolution.ts (It's a file with a solution that was taken from the top ranking LeetCode)
- ├── solution.test.ts (It's a file with tests for this task)
- Install dependecies:
- use
yarn install
,npm install
or others.
- use
- Start the tests:
- To start the tests run
yarn test
ornpm run test
- To start the tests run