I'm looking for best algorithms to compare two Circular Linked List?
For example :
List 1 = 1-3-5
List 2 = 3-5-1
I want to compare "same" or "not same" but need fast algorithm.
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.Sign up to join this community