Here Are the Most Common JavaScript Algorithms and Data Structures

Here Are the Most Common JavaScript Algorithms and Data Structures

Level up your JavaScript with these algorithms and data structures

Image for postBig O Notation

Data Structures

A data structure is a particular way of organizing and storing data in a computer so that it can be accessed and modified efficiently.

More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.

Here?s a list of algorithms and data structures you should learn to level up your coding skills.

Each algorithm and data structure has its own separate README with related explanations and links for further reading (including ones to YouTube videos).

Image for postJavaScripot Algorithms ? https://github.com/trekhleb/javascript-algorithms

Big thanks to Oleksii Trekhleb making it available for anyone.

trekhleb/javascript-algorithms

? Algorithms and data structures implemented in JavaScript with explanations and links to further readings ?

github.com

Image for postLinked List ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/linked-listImage for postHash Table ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/hash-tableImage for postBinary Search Tree ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/tree/binary-search-treeImage for postHeap ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/data-structures/heap

Want more? Check out the full list of data structures on the Github repository.

trekhleb/javascript-algorithms

? Algorithms and data structures implemented in JavaScript with explanations and links to further readings ?

github.com

Image for postData Structures ? https://github.com/trekhleb/javascript-algorithms#data-structures

Algorithms

An algorithm is an unambiguous specification of how to solve a class of problems. It is a set of rules that precisely define a sequence of operations.

Image for postFibonacci Number ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/fibonacciImage for postMaximum Subarray Problem ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sets/maximum-subarrayImage for postLinear Search https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/search/linear-searchImage for postJump Search ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/search/jump-searchImage for postBinary Search ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/search/binary-searchImage for postBubble Sort ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sorting/bubble-sort#bubble-sortImage for postQuicksort ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sorting/quick-sortImage for postMerge Sort ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sorting/merge-sortImage for postRadix Sort ? https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sorting/radix-sort

Want to learn algorithms in depth? I?d suggest starting with the ?Introduction to Algorithms, 3rd Edition (The MIT Press)? book.

If you?re curious to see the full list of algorithms and data structures, check out this awesome Github repository.

trekhleb/javascript-algorithms

? Algorithms and data structures implemented in JavaScript with explanations and links to further readings ?

github.com

Thanks for reading! ?

17

No Responses

Write a response