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.
Glossary: Algorithms Beyond the Basics
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.