A
anunaygupta
Hello all,
I have a data structures problem.
Assume there are 2 linked lists L1 and L2. They merge into some node.
L1 1->2->3->4->5->6
/
L2 8->7->9->/
L1 and L2 merge in node with value 5. We need to return the pointer to
the node with value 5.
What is the best and efficient solution to find the node where the 2
lists merge?
Thanks,
Anunay
I have a data structures problem.
Assume there are 2 linked lists L1 and L2. They merge into some node.
L1 1->2->3->4->5->6
/
L2 8->7->9->/
L1 and L2 merge in node with value 5. We need to return the pointer to
the node with value 5.
What is the best and efficient solution to find the node where the 2
lists merge?
Thanks,
Anunay