Write a code segment that uses the % operator during an enqueue to adjust the rear index of the circular array implementation of ArrayQueue, so as to avoid the use of an if statement. You may assume that the queue implementation uses the variables self._rear and self._items to refer to the rear index and array, respectively.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here