Textbook exercises for "Algorithms, Fourth Edition" by Robert Sedgewick and Kevin Wayne, on Addison and Wesley.