Loading...
Engaged Employer
how to know if two linked list collide
Anonymous
check if the last node is the same
Measure length of both lists (l). Promote the longer list to the difference between the lists. Now the lists are the same length. Compare each node while promoting. If any 2 nodes equal - lists intersect.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.