1. Write a code segment that uses an if statement during an enqueue to adjust the rear index of the circular array implementation of ArrayQueue. You may assume that the queue implementation uses the variables self._rear and self._items to refer to the rear index and array, respectively.
2. Explain how inheritance can help to eliminate some redundant methods in the two queue implementations.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here