Question: I need to replace the question mark with the right value. I chose size() becuase then it will traverse the entire list without throwing the
I need to replace the question mark with the right value. I chose size() becuase then it will traverse the entire list without throwing the exception.
I also need to make a diagram for this linked list and I am confused about the
Node
Node
section. I'm pretty lost with this diagram but I am very lost as to where the head points to after this section because current will be head but then temp will also be head.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
