33 Commits

Author SHA1 Message Date
b13b12e88c chore: merge Fix/742 migrate doctest to jest (#749)
* Remove QuickSelect doctest

There are more Jest test cases already.

* Remove AverageMedian doctest

Already migrated to jest

* Migrate doctest for BinaryExponentiationRecursive.js

(also remove inline "main" test method)

* Migrate doctest for EulersTotient.js

(also remove inline "main" test method)

* Migrate doctest for PrimeFactors.js

(also remove inline "main" test method)

* Migrate doctest for BogoSort.js

Re-write prototype-polluting helper methods, too.

(also remove inline test driver code)

* Migrate doctest for BeadSort.js

(also remove inline test driver code)

* Migrate doctest for BucketSort.js

(also remove inline test driver code)

* Migrate doctest for CocktailShakerSort.js

(also remove inline test driver code)

* Migrate doctest for MergeSort.js

(also remove inline test driver code)

* Migrate doctest for QuickSort.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

* Migrate doctest for ValidateEmail.js

* Migrate doctest for ConwaysGameOfLife.js

(remove the animate code, too)

* Remove TernarySearch doctest

Already migrated to jest

* Migrate doctest for BubbleSort.js

(also remove inline test driver code)

* Remove doctest from CI and from dependencies

relates to #742
fixes #586

* Migrate doctest for RgbHsvConversion.js

* Add --fix option to "standard" npm script

* Migrate doctest for BreadthFirstSearch.js

(also remove inline test driver code)

* Migrate doctest for BreadthFirstShortestPath.js

(also remove inline test driver code)

* Migrate doctest for EulerMethod.js

(also remove inline test driver code)

Move manual test-code for plotting stuff in the browser in a distinct file, too. Those "*.manual-test.js" files are excluded from the UpdateDirectory.mjs script, as well.

* Migrate doctest for Mandelbrot.js

(also remove inline test driver code & moved manual drawing test into a *.manual-test.js)

* Migrate doctest for FloodFill.js

* Migrate doctest for KochSnowflake.js

(also move manual drawing test into a *.manual-test.js)

* Update npm lockfile

* Update README and COMMITTING with a few bits & bobs regarding testing & code quality
2021-10-07 12:33:38 +05:30
1589263947 fixed some spellings 2021-10-05 12:49:23 +05:30
d49cf9fead chore: Added BellmanFord (#679)
* Added BellmanFord

* Add References for BellmanFord

* Style code using standard.js

* Add tests and modify code

* Fixed BellmanFord test file

* Add BellmanFord and tests
2021-09-09 16:46:52 +05:30
aaee62b6aa Merge pull request #349 from c-utkarsh/add-floyd-warshall
Added FloydWarshall All Pairs Shortest Path Algo
2021-05-23 13:38:04 +05:30
3c3cae6e8a Merge pull request #572 from algobytewise/add-BreadthFirstShortestPath
Add algorithm Breadth-first shortest path
2021-02-28 08:48:34 +05:30
c1e0dcb036 fix: updated description comment 2021-02-28 08:44:38 +05:30
60dd4069e8 use set to keep track of visited nodes, updated description 2021-02-27 09:51:51 +05:30
853386fa97 use set to keep track of visited nodes, corresponding adjustments to doctest 2021-02-27 09:44:33 +05:30
d11df93cd0 Add algorithm Breadth-first shortest path 2021-02-25 15:28:52 +05:30
692c0dc91b add algorithm Breadth-first search 2021-02-25 15:22:35 +05:30
493aab4309 Removed anonymous function 2021-02-02 16:54:14 -03:00
d6cd367b25 Added density calculation 2021-01-23 15:56:09 -03:00
3a1d21a987 Corrected let to const 2021-01-18 20:56:58 -03:00
686ba7e8f9 Added suggestions and updated for loop 2021-01-18 20:54:44 -03:00
1d72cbb273 Update Graphs/NodeNeighbors.js
Co-authored-by: Tapajyoti Bose <44058757+ruppysuppy@users.noreply.github.com>
2021-01-17 01:11:13 -03:00
7b15f66a86 Added JS standard 2021-01-06 17:37:19 -03:00
5946f987a9 Added wikipedia link 2021-01-06 17:13:52 -03:00
80fc69ef41 Added Node Neighbors 2021-01-06 17:10:09 -03:00
920f4b3b38 Added FloydWarshall All Pairs Shortest Path Algo 2020-10-02 13:28:18 +05:30
b06aa8733f Add number of islands 2020-10-01 21:50:05 -04:00
e3ee2b2675 add Number of Islands 2020-10-01 21:38:52 -04:00
b1b4c138a6 Changed var to const/let (#322)
* varToLet

* Update DijkstraSmallestPath.js

Co-authored-by: Aayushadh <ayushharwani2011@gmail.com>
2020-10-01 23:05:36 +05:30
df58a7ed5f Small Tweaks/Fixes (#235) 2020-08-01 09:11:19 +05:30
0fd1a19ba5 Created Tree Section + Moved Tree algorithm from into the folder (#236) 2020-07-28 21:46:56 +05:30
f21e460729 Added Kruskal's Algorithm (#232) 2020-07-23 20:55:21 +05:30
e20c99809e Added DFS (Iterative) - Graph (#229) 2020-07-19 10:22:10 +05:30
b5899d5294 Added DFS (Recursive) - Graph (#228) 2020-07-14 17:34:42 +05:30
6a80dc7179 Added Prim's Algoritm (#227) 2020-07-10 01:38:14 +05:30
f34fd6d8f0 Added Connected Components using DFS (#223) 2020-07-07 12:39:33 +05:30
0c3fd105c8 Rename DFS.js to DepthFirstSearch.js 2020-06-28 12:40:36 +05:30
269157f65b Added DFS Algorithm (#199)
* FibonacciSearch

* FibonacciSearch

* Depth First Search Algorithms

* Depth First Search Algorithms

* Depth First Search Algorithms

* Depth First Search Algorithms
2020-06-23 09:42:36 +05:30
37ab4b0752 rename and reorganizing (#194) 2020-06-20 10:26:44 +05:30
f75549f6d7 Created DijkstraSmallestPath.js in Graphs (#185)
* Created DijkstraSmallestPath.js in Graphs

* Deleted DijkstraSmallestPath.js from Maths
2020-06-20 10:09:07 +05:30