1 ) I am going to execute this code with THREE inserts and ONE get_front: IntQue
ID: 3537386 • Letter: 1
Question
1 ) I am going to execute this code with THREE inserts and ONE get_front: IntQueue q = new IntQueue( ); q.insert(1); q.insert(2); q.insert(3); System.out.println(q.getFront( )); Suppose that q is represented by a circular array. Draw the state of these private instance variables of q after the above code: 2 )I am going to execute this code with THREE insert and ONE get_front: IntQueue q = new IntQueue( ); q.insert(1); q.insert(2); q.insert(3); System.out.println(q.getFront( )); Suppose that q is represented by a linked list. Draw the state of the private instance variables of q after the above code: 3 ) Describe why it is a bad idea to implement a linked list version a queue which uses the head of the list as the rear of the queue.Explanation / Answer
1)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.