javascript-algorithms
javascript-algorithms copied to clipboard
π Algorithms and data structures implemented in JavaScript with explanations and links to further readings
I updated the existing merge-sort code with an optimized version. I used this for my DSA Project. This optimization would help improve the efficiency of the Merge Sort algorithm.
Update file src/data-structures/linked-list/LinkedList.js and src/data-structures/linked-list/__test__/LinkedList.test.js - src/data-structures/linked-list/LinkedList.js Before ```js ``` After ```js /** * @returns {Number} */ size() { // If head is null the size of linked list will...
I realized that we cannot access size of some structurest directly like stack, queue. We were have to access size by other objects like linkedlist.toArray().size. That is why i added...
The node label was incorrectly specified - 7, but it should be 3
This change attempts to resolve issue #1030. Only included the implementation of the algorithm, let me know whether i should further continue to contribute or not. Signed-off-by : Sundaram krishnan
added Persistent Vector functionality in data Structure
Did not see the cycle detection algorithm on the list of algorithms for linked list and Floyd's Cycle detection algorithm is a very interesting and intuitive algorithm to do the...
Hope you are able to merge this first PR of a Khmer README add, so that it improves clarity for Cambodian developer who will stumble on this github repo. Thank...