javascript-algorithms
javascript-algorithms copied to clipboard
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
Knapsack has error
``` var uu = [ new KnapsackItem({ value: 3, weight: 2 }), new KnapsackItem({ value: 4, weight: 3 }), new KnapsackItem({ value: 5, weight: 4 }), new KnapsackItem({ value: 7,...
Hard to view some images or diagrams in GitHub's Dark Mode
As I am using dark mode in GitHub, I came across at least a couple of diagrams that were not compatible with dark mode, making it difficult to understand the...
Added Solution to #550 Add A Star Algorithm.
images are not visible in dark mode
images are not visible if the github dark mode is enable 
I improved the performances of trialDivision by performing fewer checks, while still using the same overall idea of the algorithm.
This error occurd when I was running the file > src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.test.js ``` at Object. (~/javascript-algorithms-master/src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.test.js:45:7) ``` ```javascript describe('resizeImageWidth', () => { it('should perform content-aware image width reduction', () => {...
Splaytree
Closes #748 As mentioned in the issue #748 , I have added pancake sorting algorithm and have successfully written and passed the tests as well .  I request...
A Merkle tree is a data structure that is used in computer science applications. In bitcoin and other cryptocurrencies, Merkle trees serve to encode blockchain data more efficiently and securely....