Exercises from "Concise Notes on Data Structures and Algorithms: Ruby Edition", Christopher Fox (2012)