grokking-algorithms icon indicating copy to clipboard operation
grokking-algorithms copied to clipboard

Examples (in different programming languages) of the algorithms from the book "Grokking Algorithms".

Grokking Algorithms

This repository contains the algorithms (in various languages) from each of the chapters in the amazing Grokking Algorithms book.

I created this repository as a learning experience for myself, and in hopes that it may be useful to others.

Chapters

Below is the index of the algorithms (in various languages) used in each chapter of the book.

Chapter 1: Introduction to Algorithms

Chapter 2: Selection Sort

Chapter 3: Recursion

Chapter 4: Quicksort

Chapter 5: Hash Tables

Chapter 6: Breadth-first Search

More Algorithms

The /extras directory consists of the following examples in multiple languages:

  1. Combining two or more algorithms
  2. Algorithms that weren't touched on in the book

Recursive Binary Search

Contributing

Feel free to make pull requests for code improvements, new languages, etc.