Skip to content

Glossary: Algorithms Beyond the Basics

Copy (of a list)

Also written: chosen[:], slice copy

A new list with the same items, made with `chosen[:]`. Saving a copy at the base case keeps later undo steps from changing the saved answer.

Where the book teaches it

Related terms

BacktrackingSlice