https://github.com/edignot/algorithm-data-structure-practice
🧠My solutions to popular LeetCode, HackerRank, and other problems. Each solution has a unit test file. The goal of this project is to learn/practice algorithms, data structures, time and space complexity
https://github.com/edignot/algorithm-data-structure-practice
algorithms algorithms-and-data-structures data-structures javascript
Last synced: 12 months ago
JSON representation
🧠My solutions to popular LeetCode, HackerRank, and other problems. Each solution has a unit test file. The goal of this project is to learn/practice algorithms, data structures, time and space complexity
- Host: GitHub
- URL: https://github.com/edignot/algorithm-data-structure-practice
- Owner: edignot
- License: mit
- Created: 2020-10-18T04:32:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-08T00:56:34.000Z (over 5 years ago)
- Last Synced: 2025-02-15T09:16:46.660Z (about 1 year ago)
- Topics: algorithms, algorithms-and-data-structures, data-structures, javascript
- Language: JavaScript
- Homepage: https://github.com/edignot/algorithm-data-structure-practice
- Size: 211 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Algorithms Practice
Each problem directory includes:
- Problem description with the link to original problem ( LeetCode, HackerRank, CodeWars... )
- One ore more working solution to the problem
- Unit test file
There might still be some personal comments added for my learning purposes.
## Algorithms:
- **Math**
* Fibonacci Sequence
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/fibonacci-sequence/fibonacci-sequence.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/fibonacci-sequence/fibonacci-sequence.test.js)
* Factorial
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/factorial/factorial.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/factorial/factorial.test.js)
* Min Number
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/min-number/min-number.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/min-number/min-number.test.js)
* Prime Number
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/pirmal-numbers/primal-numbers.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/pirmal-numbers/primal-number.test.js)
* Power of 2
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/power-of-two/power-of-two.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/power-of-two/power-of-two.test.js)
- **Sorting**
* Merge Sort
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/sorting/sorting.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/sorting/sorting.test.js)
* Quick Sort
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/sorting/sorting.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/sorting/sorting.test.js)
* Bubble Sort
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/sorting/sorting.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/sorting/sorting.test.js)
- **LeetCode**
* Valid Parentheses
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/valid-parentheses/valid-parentheses.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/valid-parentheses/valid-parentheses.test.js)
* Integer to Roman
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/integer-to-roman/integer-to-roman.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/integer-to-roman/integer-to-roman.test.js)
- **All**
* Robot Return to Origin
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/robot/robot.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/robot/robot.test.js)
* Snail
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/snail/snail.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/snail/snail.test.js)
* Knapsack
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/kanpsack/knapsack.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/kanpsack/knapsack.test.js)
* Tree relation
[`Solution`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/recursion-tree/recursion-tree.js)
[`Test file`](https://github.com/edignot/algorithm-data-structure-practice/blob/master/src/recursion-tree/recursion-tree.test.js)
## Usage
- Clone this repo
- Run npm install to get dependencies
- Run npm test to run testing files
## Contributors
[Edita Ignot](https://github.com/edignot) | [MY COMMITS](https://github.com/edignot/algorithms/commits/master?author=edignot&branch=master)