Input for the linked list in Intersecting and Cycle detection problem

Hello sir,
I am really confused about how to take input from users to check whether the entered input is circular, intersecting, etc or not. I was solving the intersection problem, I got the logic behind it but was unable to find a way to take the intersecting input. And the same for cycle detection problem.

I would be grateful if you could clear my doubt.

@hashor Hey the first linked list would be given as array and last element would be -1 indicating NULL.
Second list would be second array but this will not have any -1 at the end, it would end at some element of first linked list, now second array might have 1 last element common or 2 last element or x last elements common with first linked list, Your job is to find the starting element where this chain of common elements start

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.