3 ms·
> a good strategy is to reserve the necessary memory in an array, fill it with keys/values, sort it once over the keys and coindex the value array This explana
by ramchip 9y ago
> a good strategy is to reserve the necessary memory in an array, fill it with keys/values, sort it once over the keys and coindex the value array
This explanation confuses me. Is there one or two arrays? What does "coindex" mean?
- dom0 9y agoEqual indices refer to the same entity in all places. I.e. two arrays, one for the key, one for the value. The value of the key at index n in the key array is found at the same index n in the values array.