Skip to content

a collection of data structures and algorithms written in JavaScript, Python and Rust

Notifications You must be signed in to change notification settings

pmulard/data-structures-and-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This is a collection of data structures and algorithms implemented in JavaScript (mainly), Python, and Rust. The Python and Rust versions are a work in progress, and only exist for the core sorting and searching algorithms. Everything has at least a JavaScript version.

Why write these all from scratch, especially when there are many implementations written across the internet? I did this mainly to gain a deeper understanding of how each works and for practice.

🟡 => JavaScript
🔵 => Python
🟠 => Rust

Data Structures

Stack 🟡
Queue 🟡
Priority Queue 🟡
Singly Linked List 🟡
Doubly Linked List 🟡
Hash Table 🟡
Binary Search Tree (BST) 🟡
Binary Heap 🟡
Trie (Prefix Tree) 🟡
Graph 🟡
Adjacency List 🟡

Algorithms

Sorting

Selection Sort 🟡🔵🟠
Bubble Sort 🟡🔵🟠
Insertion Sort 🟡🔵🟠
Merge Sort 🟡🔵🟠
Quicksort 🟡🔵🟠
Radix Sort 🟡

Searching

Linear Search 🟡🔵🟠
Binary Search 🟡🔵🟠
Breadth First Search (BFS) 🟡
Depth First Search (DFS) 🟡
Top K Elements 🟡

Graphs

Topological Sort 🟡
Dijkstra's Algorithm 🟡

About

a collection of data structures and algorithms written in JavaScript, Python and Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published