Knowsh.com

Determine if the two linked lists intersect

http://www.knowsh.com

Given two singly linked list, determine if the two lists intersect. Return the intersecting node. Note that the intersection is defined based on reference, not value. That is, if the kth node of the first linked list is the exact same the node(by reference) as the jth node of the second linked list, then they are intersecting.

http://knowsh.com/Notes/160273/Determine-If-The-Two-Linked-Lists-Intersect

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s