I have implemented the queue with a circular array. If data is a circular array of CAPACITY elements, and last
is an index into that array, what is the formula for the index after last?
Suppose you implement a heap (with the largest element on top) in an array. Consider the different arrays
below, determine the one that cannot possibly be a heap: