Exercises in Algorithms (4th edition) by Sedgewick
Please do not copy these answers for school. I will email your teacher. You won't learn anything. You'll get fired from your first job when you don't understand how to implement breadth-first search, and I'll feel sad that I helped this happen.
For easy algs4.jar referencing, put the .jar in the following folder:
- Windows: jdk[version]\jre\lib\ext\
- Linux: /usr/java/packages/lib/ext/