I doing a program with circular linked list but its not working.In the program there are 6 suitors and there are elimination process proceeds as follows:
123456 Its inital list start counting from 1
12456 then suitor 3 eliminated and continue counting from 4
1245 then 6 eliminated and countinue counting from 1
125 then 4 is deleted and countinue counting from 5
15 then 2 is deleted and countinue counting from 5
1 then 5 is eliminated and 1 is winner.
This program gives errors and i am confused.Please help me with this program
123456 Its inital list start counting from 1
12456 then suitor 3 eliminated and continue counting from 4
1245 then 6 eliminated and countinue counting from 1
125 then 4 is deleted and countinue counting from 5
15 then 2 is deleted and countinue counting from 5
1 then 5 is eliminated and 1 is winner.
This program gives errors and i am confused.Please help me with this program
Comment