An open API service indexing awesome lists of open source software.

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

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)