In the deepCopy function of the DoublyLinkedList, the pointer that walks through the original list starts at the last nonempty node because:

A. traveling backwards through the DoublyLinkedList is faster than traveling forwards
through it
B. there may not be any other node in the list
C. the element contained within it will be in the last nonempty node of the copy when it is the first element to be inserted into the copy
D. it makes it easier to set the current pointer

C

Computer Science & Information Technology

You might also like to view...

You can pin and unpin programs as you need them

Indicate whether the statement is true or false

Computer Science & Information Technology

Write the code to convert the value in an integer variable named count to a double. _____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology