javascript-algorithms
javascript-algorithms copied to clipboard
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
Add Tim Sort
I implemented the Tim Sort. I tried to keep it in the same fashion as other sorting algorithms as much as possible. I even used the source code of insertion...
I've added a matrix exponentiation function that computes A^n in O(n^3 * log(n)) in the Matrix.js file.
Hi, can I add a Malay version for README?
Non-recursive factorial function for BigInt data type.
Wrong array representation in Heap README.md
 in the array the node with value 3 has two children (2, 7), the correct parent of (2,7) should be 17 instead
Tail Call Optimized factorial function for BigInt data type.
Add factorialRecursiveTCO (Tail Call Optimized)
Create extractBits.js
Function to extract 'k' bits from position 'p' and returns the extracted value as integer.