Question: task 4 java lang 6:13 WO3 Lab Linked lists, Big O Notatio... Task 4. Comprehensive. (10 points) Modify the textbook's double-linked list class. Add a

6:13 WO3 Lab Linked lists, Big O Notatio... Task 4. Comprehensive. (10 points) Modify the textbook's double-linked list class. Add a method findMiddle) that finds the middle node of a doubly linked list by link hopping without relying on explicit knowledge of the size of the list. Counting nodes is not the correct way to do this. In the case of an even number of nodes, report the node slightly left of center as the middle You can assume the list has at least one item. Your find Middle() code will be located in DoublyLinkedList.java. If you're using size), you're doing It wrong Starter code the findMiddle() method: // Janet McGregor 4/20/2053 public E findMiddle Node middle Node - header.next; Node
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
