Solutions of algorithm problems using Javascript. https://ignacio-chiazzo.github.io/Algorithms-Leetcode-Javascript/
The solutions are located under /LeetcodeProblems. Each solutions exports the main function(s) which to be tested. Each problem has a test file located under /LeetcodeProblemsTest.
To run all the test run node Main.js in the console.
To run a specific problem in your console, go to the file test, add the call to the test function (test() ) and run in the console node <problem_file_path> (e.g. node LeetcodeProblems/Lowest_Common_Ancestor_of_a_Binary_Tree.js).
| Algoritmhs |
|---|
| Heap Sort |
Other languages provides built-in classes (e.g Linked List, Tree, etc). This module contains util classes to use in your problems.
If you want to contribute to this repo by adding a problem you should:
- Add the description of the problem at the top of the file.
- Add a test file with some test cases. The test file must export a
test()function which should run all the tests of the file. - Add your problem to the Readme so that your problem shows up in the list of solutions.
PR Example: ignacio-chiazzo#39