Skip to content

Glossary: Algorithms Beyond the Basics in Java

copy of a list

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

A new list with the same items, made with `new ArrayList<>(chosen)`. Backtracking saves a copy at the base case so later undo steps don't empty the saved answers.

Where the book teaches it

Related terms

backtrackingbase case