About this Book
This book contains many examples of source code, both in separate examples and inline with normal text. In both cases, source code is formatted in a fixed-width font like this to separate it from ordinary text.
In some places, original source code has been reformatted with added line breaks and reworked indentation to accommodate the available page space in the book. Wrapped code lines are often indicated with line-continuation markers ().
A GitHub repository with the code for the book is available: https://github.com/davecom/ClassicComputerScienceProblemsInSwift. A zip file containing the code at the time of publication is also on the publisher’s website at https://www.manning.com/books/classic-computer-science-problems-in-swift.
Trademarked names appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, the names are only used in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Apple, Xcode, Swift, Mac, iOS, iPhone, and macOS are registered trademarks of Apple Inc.