Re:Show HN: Array with Constant Time Access and Fast Inserti...
by superphil0 on Wednesday September 04, 2019 @02:07AM
(#20874449)
If deq had to be fixed length beforehand with length k but with many insertions k can be much smaller than n^0.5 I think you might end up with a much worse worst case for insertion? Something in the order of O(n) than O(n^0.5)
Or there has to be a readjustment of k.
Cab somebody point out my thinking error?