1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linked List Code Urgently required

Discussion in 'C' started by Sabi, Mar 24, 2007.

  1. Sabi

    Sabi New Member

    Joined:
    Mar 22, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pakistan
    Write a complete program to implement the link list operations as following.
    a. Write a routine to make two lists L1 and L2 with 5 elements given by the user at run time. Or add two lists with its elements in the main function.
    b. Write a routine to compute L1 ∩ L2 using only the basic list operations.
    c. Print out L1, L2, and L1 ∩ L2.

    For example if you have
    L1 = {1, 3, 4, 6, 7}
    L2 = {2, 5, 6, 7, 8}

    So the
    L1 ∩ L2 = {6, 7}

    Note: You can use an empty list L3 to store the elements of L1 ∩ L2
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83

Share This Page