When I was taking a course in algorithms many years ago I discovered an awesome opportunity.
Early on during the course, everyone, including the instructor noticed that the data structures text we were to study from was riddled with errors. Not just a few, but hundreds! It’s as if the authors did not use an editor and/or were extremely sloppy. They definitely did not unit test any of the code in the book.