Skip to content

Glossary: Data Structures and Algorithms in Java

Collections.reverse

A method that reverses a list in place. BFS uses it to turn a route built backward into one that reads from start to goal.

Where the book teaches it

Related terms

in placecameFrom