Skip to content

Glossary: Coding Interviews in Java

List copy

Also written: new ArrayList<>(path), copy

A new list holding the same items, made with `new ArrayList<>(path)`. Backtracking must save a copy, because saving `path` itself saves one list that keeps changing.

Where the book teaches it

Related terms

BacktrackingPath