Gitpedia

Sedgewick algorithms in c exercises and examples

Examples and exercises from Algorithms in C, Parts 1-4: Fundamentals, Data Structures, Sorting, Searching by Robert Sedgewick book

From caisah·Updated April 3, 2026·View on GitHub·

Algorithms in C ================================================ My takes of **Algorithms in C - Fundamentals, Data Structures, Sorting, Searching (3rd Edition)** book by **Robert Sedgewick**. It contains code for both the **examples** and the **exercises**. The project is written primarily in C, first published in 2013. Key topics include: algorithms, c, exercise.

Algorithms in C

My takes of Algorithms in C - Fundamentals, Data Structures, Sorting, Searching (3rd Edition) book by Robert Sedgewick.
It contains code for both the examples and the exercises.

###Organization

Each dir has only the code from the specific chapter.

Each dir contains 2 subdirs, one with the code for the examples and one with answers for the exercises.

###Compiling

All the programs were compiled with the -std=c99 flag and should work out of the box.

###Missing & Other

Some of the answers for particular exercises are missing.
I have omitted exercises which require only a explanatory type of solution or for which I found no value in solving.

Most of the latest chapters have no exercises.

Some of the examples are not 100% according to the book, because I tried to make them work in a practical way (are more than only scattered code snippets).
Therefore some examples contain code I have added in order to compile and work with some input.

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from caisah/Sedgewick-algorithms-in-c-exercises-and-examples via the GitHub API.Last fetched: 5/31/2026