Question: C++ coding , thanks Assume you are working for an online shopping company (like Amazon) that uses a linked list to map orders for items

C++ coding , thanks
Assume you are working for an online shopping company (like Amazon) that uses a linked list to map orders for items placed online. Amazon seeks and hires consultants from a variety of satellite software companies to implement their code, which includes many incompetent programmers who tend mess up pointers. To safeguard against such errors, you are asked to write a simple subroutine that checks for loops in a given list. Provide pseudo-code for a function that checks a linked list for loops. If it finds a loop, it is further required to eliminate the loop. You are made available a function getLength() which accurately returns to you the length of the list, and a pointer to the head of the list. In other to implement void detectAndRemoveLoops ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
