Neocortex 🧠

Search

Search IconIcon to open search

Copying Lists

Last updated Nov 16, 2021 Edit Source

When copying lists, you need to create a new Array/Linked List and copy over each element from the original list into the new one. This approach works, however, when you are copying objects, since objects are reference based, you need to call .clone() method of each instance.


Interactive Graph