I'm storing objects for a grid in a two dimensional array. Since the grid is hexagonal, it is much easier to use a coordinate system that is centered at (0, 0) and ranges from -r to r.
According to this thread, apparently negative indices in an array aren't real indices, but actually properties of the array.
I have two questions:
Does this affect running time speed of operations on the array? Would negative indices still be accessed in constant time?
How do I delete negative indices? I tried using splice, but it deleted the wrong indices (shown below).