Skip to content

Glossary: Data Structures and Algorithms in Go

slices.Reverse

A function that reverses a slice in place. BFS uses it to turn a route built from goal to start into start to goal.

Where the book teaches it

Related terms

cameFrom mapIn place