Question: ( i ) Write a procedure to find the midpoint ( i . e . , the middle node ) of a singly linked list
i Write a procedure to find the midpoint ie the middle node of a singly linked list
using two parallel passes through the list.
ii How can you count the size number of nodes of a readonly singly linked list ie you
cannot make changes to it that has a cycle ie there is no pointer to tail and the last
node points to another node of the list instead of pointing to null You do not need to
write code or pseudo code. Writing only the steps and technique would suffice.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
