Skip to content

Glossary: Data Structures and Algorithms in JavaScript

reverse()

Also written: reverse

The array method that turns an array around in place. BFS uses it to flip a route built backward from goal to start.

Where the book teaches it

Related terms

In placecameFrom