grokking algorithms

by Aditya Y. Bhargava

This is a really fun book to read if you want to learn a bit about algorithms. Whether preparing for a coding interview coming up or just looking for a "easy to read" algorithms book this is a great choice. I love how Bhargava uses fun stories to motivate and discuss the algorithms he presents. My only complaint is that the book is too short! Readers unfamiliar with this book can see what others have said here. The book presents exercises at the end of each chapter and to test my knowledge I worked them and this document is the result. Hopefully other students of this material will find them helpful.

My implementation (in python code) of a few of the problems:

John Weatherwax