Google | Phone Screen | Longest Common Sublist
Anonymous User
1868

givne two linked list:
L1 : 1->2->3->4->5
L2 : 3->4->5

find longest common sublist from list end , like above example , the ans is :
3->4->5

O(1) space and not to reverse the linked list.

Comments (6)