4 ms·
This intermediate array is a space leak. Database results can be iterated over in constant space; your technique requires linear space.
by jrockway 17y ago
This intermediate array is a space leak. Database results can be iterated over in constant space; your technique requires linear space.
- zackattack 17y agoCan you explain the dichotomy of constant space / linear space here? Because constant = {whatever} and mine is linear because it necessarily doubles the constant space?