Skip to content

Glossary: Coding Interviews in C++

Vector copy

Also written: auto copy = path;, copy

A new vector holding the same items, such as `auto copy = path;`. In backtracking you save a copy of the changing path rather than the path itself, or every saved box ends up empty.

Where the book teaches it

Related terms

PathBacktrackingconst reference