By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,913 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,913 IT Pros & Developers. It's quick & easy.

Linked List

P: 16
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
Mar 24 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

Mar 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.