Queue
easyTwo indices, neither ever moving backwards. It looks trivial until you implement it on an array and discover that shifting on every dequeue makes a full drain O(n²).
Worst
O(1) enqueue/dequeueSpace O(n)Loading the queue engine…