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

2 Comments

  1. techie007 says:

    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

  2. JUAN says:


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. No prescription pills. Order drugs online

    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….

Leave a Reply