Solutions to Introduction to Algorithms Third Edition

Getting Started

This website contains nearly complete solutions to the bible textbook - Introduction to Algorithms Third Edition, published by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein.

Hope to organize solutions to help more people and myself study algorithms. By using Markdown (.md) files, it's much more readable on portable devices now.

"Many a little makes a mickle."


Thanks to:

Special thanks to @JeffreyCA, who fixed math rendering on iOS Safari in #26.

If I miss your name here, please tell me!

Currently working on removed problems!


The emergence of this website, from the very beginning, is very simple. I want to provide a website that is easy to read on mobile devices to help everyone learning algorithms.

Therefore, please don't hesitate to give me your feedback if any adjustment is needed with the sorted solutions or you have the same motivation and want to contribute to this work. You can press the "pencil icon" in the upper right corner to edit the content or open an issue in my repository. Your solution will be rebased on this repository after I review and make some form modifications to your pull request.

Thank you very much, and I hope that everyone will learn algorithms smoothly!

How I generate this website?

I use the static site generator MkDocs and the beautiful theme Material for MkDocs to build this website!

Since KaTeX is now supporting more functions and is much faster than MathJax, I've updated all math equations from MathJax to KaTeX.

I also add overflow-x: auto to prevent the overflow issue on small screen devices so that you can scroll horizontally in the math display equations.

More Information

I rebased my repository regularly for clearer commit histories. Therefore, if you have forked the repository before, consider re-forking it again.

For more information, please visit my GitHub.

Updated to this new page on April 13, 2018, at 04:48 (GMT+8).

Revised on July 21, 2019.


Licensed under the MIT License.