Mac 下使用 Xcode 打开 MasteringAlgorithms.xcodeproj 即可。Algorithms.xcodeproj 为算法库文件工程。每个 Example 都是单独的运行文件。
只需要有简单的 c 编译环境cc
然后执行 ./run bfs,其中 bfs 为 Example 中的示例目录。
也可以自己使用cc gcc 等,gcc source/*.c Example/bfs/main.c -I ./include -o bfs && ./bfs
