Find Intersection point of 2 linked lists
Given 2 linked lists merged at some point in the form of a ‘Y’. Find the intersection point
Just another WordPress weblog
Given 2 linked lists merged at some point in the form of a ‘Y’. Find the intersection point
1. Let L1,L2 be the 2 linked lists
2. Find length of L1 and L2 and find the difference DIFF
3. If L1 was longer move initially DIFF pointers.
4. Now move move through L1 and L2 checking for equality till we get both pointing to same object
Buy:Cozaar.Lipothin.Seroquel.Wellbutrin SR.Advair.SleepWell.Zocor.Nymphomax.Lasix.Female Cialis.Lipitor.Ventolin.Amoxicillin.Zetia.Female Pink Viagra.Buspar.Prozac.Benicar.Aricept.Acomplia….