Topics / #data-structures

Data-structures projects on GitHub

Core data structures like trees, heaps, and hash maps and their implementations.

As of , the most-starred Data-structures projects on GitHub are coding-interview-university (365.2K stars), Python (226.5K stars) and javascript-algorithms (196.8K stars). GitHub.Locker tracks 67 Data-structures repositories with 2.7M stars combined. The fastest-growing on December 1 was coding-interview-university, with +63 stars in a day.

67Projects
2.7MStars in total
+426Stars in a day

Hot right now

Most stars gained in a day · Dec 1

The all-time top

67 projects · by stars

  1. #1 · jwasham/coding-interview-university

    coding-interview-university

    It is a multi-month self-study plan covering the computer science topics you need to pass a software engineering interview at a large company.

    365.2K
  2. #2 · TheAlgorithms/Python

    Python

    A large collection of classic algorithms and data structures implemented in Python, built as an educational reference for learning and practicing algorithms.

    226.5K
  3. #3 · trekhleb/javascript-algorithms

    javascript-algorithms

    A large collection of JavaScript implementations of classic algorithms and data structures, where each one has its own folder with code, tests, and a README explaining the theory and further reading links.

    196.8K
  1. 4

    tech-interview-handbook

    143.8Kyangshun/tech-interview-handbook · TypeScript

    A free, curated collection of technical interview preparation materials for software engineers, created by the author of Blind 75, covering algorithms, behavioral questions, resumes, and more.

  2. 5

    fucking-algorithm

    136.1Klabuladong/fucking-algorithm · Markdown

    This is labuladong's Chinese-language algorithm notebook: 60+ original articles that use LeetCode problems to teach reusable problem-solving frameworks, not just paste-and-pass code answers.

  3. 6

    hello-algo

    132.9Kkrahets/hello-algo · Python

    Hello Algo is a free, open-source illustrated book that teaches data structures and algorithms from scratch using animated diagrams and one-click runnable code.

  4. 7

    every-programmer-should-know

    100.7Kmtdvio/every-programmer-should-know

    A curated, highly opinionated collection of technical resources — articles, books, videos and papers — covering things every software developer should know, from algorithms and data structures to security, architecture and career advice.

  5. 8

    LeetCodeAnimation

    76.7KMisterBooo/LeetCodeAnimation · Java

    LeetCodeAnimation is a collection of animated LeetCode problem walkthroughs: each animation shows how pointers move, how state and recursion unfold, and why boundaries hold, paired with reference code.

  6. 9

    Java

    67.3KTheAlgorithms/Java · Java

    A GitHub collection of classic algorithms and data structures, each implemented in Java for educational purposes as part of The Algorithms project.

  7. 10

    interviews

    65.6Kkdn251/interviews · Java

    A curated study guide for coding interviews, covering data structures, algorithms, greedy algorithms, bitmasks, runtime analysis, plus links to video lectures, interview books, online judges and mock interview platforms.

  8. 11

    leetcode-master

    62.8Kyoungyangyang04/leetcode-master · Shell

    This is a curated LeetCode study guide ('代码随想录') that organizes 200 classic problems into a step-by-step learning path, with detailed illustrated explanations, video breakdowns, and mind maps for mastering data structures and algorithms.

  9. 12

    leetcode

    55.7Kazl397985856/leetcode · JavaScript

    A large, continuously growing collection of worked LeetCode solutions, algorithm and data-structure explainers, Anki flashcard decks, and a 'daily problem' archive, written by the author as he solved problems himself.

  10. 13

    guava

    51.9Kgoogle/guava · Java

    Guava is a set of core Java libraries from Google, providing new collection types (multimap, multiset), immutable collections, a graph library, and utilities for concurrency, I/O, hashing, primitives, and strings. It is heavily used inside Google and by many other companies.

  11. 14

    Projects

    48.1Kkaran/Projects

    A curated list of practical programming project ideas, grouped by category, that anyone can solve in any programming language.

  12. 15

    CPlusPlusThings

    43.6KLight-City/CPlusPlusThings · C++

    A Chinese-language repository (also partly in English) that walks C++ learners from basics to advanced topics: core language features, C++11/14/17/20, STL internals, design patterns, and concurrency, all backed by runnable code examples.

  13. 16

    interview

    38.3Khuihut/interview · C++

    A large Chinese-language knowledge base summarizing core C/C++ interview topics — language features, STL, data structures, algorithms, operating systems, networking, databases, design patterns, and the linker/loader — aimed at students and job seekers preparing for C/C++ technical interviews.

  14. 17

    leetcode

    36.8Kdoocs/leetcode · Java

    A massive collection of LeetCode solutions, plus solutions for two popular Chinese interview prep books (Coding Interviews, 2nd edition and Cracking the Coding Interview, 6th edition), each problem solved in multiple programming languages.

  15. 18

    leetcode-company-wise-problems

    35.5Kliquidslr/leetcode-company-wise-problems

    A curated collection of CSV files listing Leetcode questions grouped by the company that tends to ask them in interviews, such as Amazon, Google, Meta, and Uber.

  16. 19

    stb

    35Knothings/stb · C

    A collection of 21 single-file libraries for C/C++ covering image loading, writing and resizing, font rasterizing, audio decoding, containers and more — all released into the public domain, with an MIT option if you need a regular license.

  17. 20

    C-Plus-Plus

    34.9KTheAlgorithms/C-Plus-Plus · C++

    This is TheAlgorithms/C-Plus-Plus, an open-source collection of algorithm implementations in C++ covering computer science, mathematics, machine learning, and physics, built as a learning resource rather than for production use.

  18. 21

    JavaScript

    34.3KTheAlgorithms/JavaScript · JavaScript

    A JavaScript implementation of classic algorithms and data structures, built for beginners who want readable, well-organized reference code.

  19. 22

    LeetCode-Go

    33.8Khalfrost/LeetCode-Go · Go

    A large, well-organized collection of LeetCode problem solutions written in Go, with 100% test coverage and runtime beating 100% of submissions on many problems.

  20. 23

    immutable-js

    33Kimmutable-js/immutable-js · TypeScript

    A JavaScript library of persistent immutable data structures: List, Stack, Map, OrderedMap, Set, OrderedSet and Record. Nothing changes in place - each operation returns a new updated collection.

  21. 24

    interactive-coding-challenges

    32Kdonnemartin/interactive-coding-challenges · Python

    A collection of 120+ interactive, test-driven Python coding challenges covering algorithms and data structures commonly asked in coding interviews, each delivered as a Jupyter notebook with unit tests and a paired solution notebook, plus an included Anki flashcard deck.

  22. 25

    immer

    29Kimmerjs/immer · JavaScript

    Immer is a small JavaScript library for working with immutable state: you write code that mutates your current state, and it produces the next immutable state tree for you.

  23. 26

    CS-Books

    28.1Kforthespada/CS-Books

    A free, hand-curated collection of over 1,000 classic computer science books plus the author's own study notes, shared as a single GitHub README.

  24. 27

    OI-wiki

    27.2KOI-wiki/OI-wiki · TypeScript

    A free, open and continuously updated wiki of competitive programming (OI/ICPC) knowledge: fundamentals, common problem types, solution strategies and tools, collected so beginners can learn systematically instead of digging through scattered articles.

  25. 28

    Rust

    26.2KTheAlgorithms/Rust · Rust

    A free, open-source collection of classic algorithms implemented in Rust — the Rust volume of TheAlgorithms on GitHub. It exists for education: you read the code to learn how each algorithm works.

  26. 29

    awesome-algorithms

    25.7Ktayllan/awesome-algorithms

    A curated list of places to learn and practice algorithms: links to courses, books, blogs, visualizers and problem sites, sorted by level and topic.

  27. 30

    algorithms

    25.6Kkeon/algorithms · Python

    A collection of minimal, well-documented implementations of classic data structures and algorithms in Python 3, meant to be read and learned from rather than used as a dependency.

  28. 31

    redisson

    24.4Kredisson/redisson · Java

    A Java client and real-time data platform for Redis and Valkey: 50+ distributed Java objects, collections and services — maps, queues, locks, rate limiters, bloom filters, schedulers — beyond what Redis offers natively.

  29. 32

    DSA-Bootcamp-Java

    24.2Kkunal-kushwaha/DSA-Bootcamp-Java · Java

    This is a free Java data structures and algorithms (DSA) bootcamp repo holding the code samples, assignments, and notes for WeMakeDevs' interview-prep course.

  30. 33

    C

    22.7KTheAlgorithms/C · C

    A community-maintained, open-source collection of algorithm implementations in C, covering computer science, mathematics, statistics, data science, machine learning and engineering.

  31. 34

    ciencia-da-computacao

    21.1KUniversidade-Livre/ciencia-da-computacao

    This is a free, Portuguese-language self-study curriculum for Computer Science, built by Universidade Livre (a Brazilian open university initiative) from existing open courses from Brazilian universities and institutions.

  32. 35

    toml

    20.7Ktoml-lang/toml

    TOML (Tom's Obvious, Minimal Language) is a minimal configuration file format designed to be readable at a glance, with semantics obvious enough to map cleanly onto a hash table. This repository holds the in-development TOML specification itself.

  33. 36

    algorithms

    18.9Kwilliamfiset/algorithms · Java

    A large open-source collection of classic algorithms and data structures implemented in Java, written to demonstrate correct implementations in the simplest and most elegant ways.

  34. 37

    Go

    18.3KTheAlgorithms/Go · Go

    An open-source collection of classic algorithms and data structures implemented in Go for education, with over 18k stars and an MIT license.

  35. 38

    awesome-leetcode-resources

    18.1Kashishps1/awesome-leetcode-resources · Java

    A curated collection of resources for learning Data Structures and Algorithms (DSA) and preparing for coding interviews, including patterns, articles, curated problem lists, courses, books, and videos.

  36. 39

    toBeBetterJavaer

    17.9Kitwanger/toBeBetterJavaer · Java

    toBeBetterJavaer (二哥的Java进阶之路) is a free, community-built Chinese knowledge base of original articles covering Java fundamentals, concurrency, the JVM, enterprise development (Spring Boot, MySQL, Redis) and interview prep, meant to help readers 'become a better Java developer'.

  37. 40

    networkx

    17.4Knetworkx/networkx · Python

    NetworkX is a Python package for creating, manipulating, and studying complex networks — collections of nodes connected by edges — together with algorithms for analyzing them.

  38. 41

    algorithm-pattern

    15.5Kgreyireland/algorithm-pattern · Go

    A curated collection of reusable 'algorithm patterns' (templates) for solving coding-interview problems efficiently, written up from the author's own LeetCode grind while job hunting.

  39. 42

    rust-by-practice

    14.8Korigin-brain/rust-by-practice · Rust

    A free online book of Rust exercises, examples, and practices designed to make you comfortable with Rust by writing and running real code instead of just reading theory.

  40. 43

    leetcode-patterns

    14.4Kseanprashad/leetcode-patterns · TypeScript

    A curated, pattern-based study guide that groups LeetCode interview questions by the algorithmic pattern they test, so you repeatedly practice the same technique instead of randomly jumping between unrelated problems.

  41. 44

    grokking_algorithms

    13.8KegonSchiele/grokking_algorithms · JavaScript

    This repository holds the source code examples from the book Grokking Algorithms by Aditya Bhargava, meant to be read alongside the book's chapters.

  42. 45

    cJSON

    13.1KDaveGamble/cJSON · C

    An ultralightweight JSON parser written in plain ANSI C. The whole thing is one C file and one header, with the stated goal of being the dumbest parser that still gets your job done.

  43. 46

    concurrentqueue

    12.5Kcameron314/concurrentqueue · C++

    moodycamel::ConcurrentQueue is an industrial-strength, lock-free multi-producer multi-consumer queue for C++11.

  44. 47

    The-Complete-FAANG-Preparation

    12.3KAkashSingh3031/The-Complete-FAANG-Preparation · Jupyter Notebook

    A large curated repository of resources for preparing for FAANG-style technical interviews: Data Structures and Algorithms sheets (450 DSA by Love Babbar, Striver's SheetS, Apna College), FAANG interview questions, core CS subjects, and system design material.

  45. 48

    PythonPark

    11.9KJack-Cherish/PythonPark · Python

    A free, Chinese-language self-study guide to programming built around Python and AI: curated tutorials and videos on data structures, machine learning, deep learning, web scraping, interviews, and programmer life.

  46. 49

    CodeGuide

    11.9Kfuzhengwei/CodeGuide · Shell

    CodeGuide is a personal knowledge hub by Chinese Java engineer Fu Zheng Wei (小傅哥) that indexes years of his work: an interview handbook, hand-rolled clones of Spring and MyBatis, a JVM written in Java, Netty tutorials, bytecode-programming guides, and a published design-patterns book, all centered on core Java development.

  47. 50

    awesome-c

    11.7Koz123/awesome-c

    A curated list of awesome C frameworks, libraries, resources and other 'shiny things' for the C programming language, organized by category like AI, databases, compilers, crypto, and more.

  48. 51

    cp-algorithms

    11.5Kcp-algorithms/cp-algorithms · C++

    It is the source repository behind cp-algorithms.com, a free, ad-free, volunteer-run collection of articles explaining algorithms and data structures commonly used in competitive programming, translated and expanded from the Russian e-maxx.ru resource.

  49. 52

    xxHash

    11.4KCyan4973/xxHash · C

    xxHash is an extremely fast, non-cryptographic hash algorithm library written in C, offering 32-bit (XXH32), 64-bit (XXH64), and the newer vectorized XXH3 (64/128-bit) hash variants.

  50. 53

    a-picture-is-worth-a-1000-words

    11.4Kgirliemac/a-picture-is-worth-a-1000-words

    A personal collection of hand-drawn and digital tech doodles and sketchnotes explaining complex tech concepts (algorithms, web dev, machine learning, git, generative AI) in simple pictures.

  51. 54

    serde

    11Kserde-rs/serde · Rust

    Serde is a Rust framework for serializing and deserializing data structures efficiently and generically.

  52. 55

    orama

    10.6Koramasearch/orama · TypeScript

    Orama is a complete search engine and RAG pipeline that runs in your browser, on a server or at the edge, with support for full-text, vector and hybrid search.

  53. 56

    single_file_libs

    10Kr-lyeh/single_file_libs

    A curated catalog of single-file (or at most two-file) C/C++ libraries, organized by category, with emphasis on permissive, clause-less licenses like public domain, MIT, or ZLIB.

  54. 57

    maths-cs-ai-compendium

    7.7KHenryNdubuaku/maths-cs-ai-compendium · TypeScript

    An open, unconventional online textbook covering maths, computing and AI from the ground up — intuition first, real-world context, for practitioners who want deep understanding rather than exam survival.

  55. 58

    OpenHeart

    5.9KAhmadHassan-BTed/OpenHeart · Rust

    OpenHeart is a static analysis compiler written in Rust that parses source code into a formal graph representation called SCPG (Succinct Compositional Program Graph) and projects it into 19 different diagrams: 14 standard UML 2.5 views plus 5 compiler pipeline IRs.

  56. 59

    SDE-Interview-and-Prep-Roadmap

    4.2Kaasthas2022/SDE-Interview-and-Prep-Roadmap · Python

    A massive checklist-style roadmap for preparing for Software Development Engineer (SDE) interviews, covering Data Structures, Algorithms, System Design, Operating Systems, Networking, Databases, Programming Concepts, and System Architecture.

  57. 60

    goose

    3.7Kaardappel/goose · C++

    Goose is a memory-safe systems programming language with no heap allocator, garbage collector, or lifetime annotations. In its own benchmarks it runs faster than C++ and safe Rust while using less memory.

  58. 61

    marisa-trie

    1.1Kpytries/marisa-trie · Cython

    Static, memory-efficient trie-like data structures for Python, built on the marisa-trie C++ library. Strings stored inside can take up to 50x-100x less memory than in a standard Python dict, with comparable lookup speed and fast prefix search.

  59. 62

    ML-Interview-Prep

    773jyotipmahes/ML-Interview-Prep · Jupyter Notebook

    A machine learning engineer (MLE) interview prep repository made of Jupyter notebooks with from-scratch algorithm implementations, LeetCode-style ML problems, and AI-assisted coding interview patterns.

  60. 63

    bbtree

    668XiangpengHao/bbtree · Rust

    bbtree is a Rust library implementing a concurrent ordered map (B-tree) that claims to be the fastest available: 5x faster than std's BTreeMap single-threaded and 12x faster than crossbeam-skiplist at 96 threads.

  61. 64

    autumn-recruitment

    314Akun-python/autumn-recruitment · Jupyter Notebook

    It is a community-built, Chinese-language collection of Jupyter notebooks covering math foundations, data structures, machine learning, deep learning, LLMs, agents, AI infrastructure, speech, and data science, aimed at job-hunting ('autumn recruitment') interview prep in the LLM era.

  62. 65

    graph

    261statelyai/graph · TypeScript

    A TypeScript library providing universal utilities for working with graphs: a plain {nodes, edges} JSON data model plus algorithms, format converters, and layout engines to actually use that data.

  63. 66

    explaindb

    191explaindb/explaindb · HTML

    ExplainDB is teaching material for a database systems course: a collection of Jupyter notebooks paired with a small Python DBMS (the system/ package) written to be readable, used alongside Prof. Jens Dittrich's 'Database Systems 2024/25' lecture at Saarland University.

  64. 67

    learned_index_lab

    166gilnett/learned_index_lab · Rust

    It is a pure Rust, zero-dependency implementation of the PGM-index (Piecewise Geometric Model learned index) along with a benchmark suite that compares it against a standard BTreeMap, flat slice binary search, and a cache-conscious Eytzinger layout.

Often tagged together