4 ms·
This depends on the language. The one with GC I know best, D, would reallocate l2 when pushing to it so l1 wouldn't be modified.
by atilaneves 7y ago
This depends on the language. The one with GC I know best, D, would reallocate l2 when pushing to it so l1 wouldn't be modified.