Question: please do in c++ * [20 points] Assume you are working for an online shopping company (like Amazon) that uses a linked list to map
please do in c++
![please do in c++ * [20 points] Assume you are working for](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2e286b4086_73466f2e28657e0f.jpg)
* [20 points] 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 consultan from a variety of satellite software companies to implement their code, which includes many incompetent programmers who tend to mess up pointers. To safeguard against such errors are asked to write a simple subroutine that checks for loops in a given list. , you 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 words, you are required 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
