Hi,
This problem seems to follow a different structure than other problems in this course.
There is a lot of code already given, aimed at generating the required cycle that is to be detected and broken.
The question also advises us to not touch any of this code and just write the already defined function for solution.
I have followed the instructions, as i understood them but i cannot figure out how to test my function since it is not clear what type of user input may be entered.
It is also highly unclear where and how a linked list is created, if any, because i cannot seem to get anything out of the buildlist functions and there seems to be no linked list at all.
Please help me figure out how to appraoch this problem, also please see my function at : https://ide.codingblocks.com/s/326935
Note: i have not touched anything other than said fucntion and i cannot figure out how to make this work.
Thanks for your help!