3 ms·
If it's not constant time on both ends, it's not a deque. You can already insert items at any index in an array with linear cost.
by sicp-enjoyer 4y ago
If it's not constant time on both ends, it's not a deque. You can already insert items at any index in an array with linear cost.