Trace QueueArray Operations

Enter some sequence of letters or dashes in the text box below.

Letters will be enqueued, in order, into a queue implemented using an array.
Dashes will cause a dequeue. The underlying array should double in size when
an enqueued character would fill the array and halve its size when a dequeue
would leave it one quarter full.

The state of the internal array after each of these operations will be shown
below when you click the "Apply" button.