Data structure using c | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Data structure using c

there are two linked list a and b containing the following data a:2,5,9,14,15,7,20,17,30 b:14,2,9,13,37,8,7,28 to create a linked list c that contain only those elements that are common in linked list a and b . a linked list d which contains all element of a as well as b ensuring that there is no repetation of elements

11th Sep 2023, 6:44 PM
Vishakha
Vishakha - avatar
8 Answers
+ 5
Here is the hint, but now you have to come up with the logic because we can't share the code. You can share your own logic, and if there are any doubts, we will help you. In Linked List C : It contains elements that are the same in lists A and B. In Linked List D: It combines lists A and B but doesn't have any repeated elements.
11th Sep 2023, 7:04 PM
Sakshi
Sakshi - avatar
+ 3
This is not a platform to give you a readymade code, firstly, please share your attempt
11th Sep 2023, 6:46 PM
Sakshi
Sakshi - avatar
+ 3
Thanks Dii for this help. I will try again to built up it's accurate logic.
11th Sep 2023, 7:21 PM
Vishakha
Vishakha - avatar
+ 2
Yes, I know but I shared this problem in discussion session to be clear about linked list and above question making me more confuse about the concept of linked list
11th Sep 2023, 6:53 PM
Vishakha
Vishakha - avatar
+ 2
Simply just two Linkedlist has given to you . In Linkedlist c you have to store the a and b data which are common or present in both the list Second one d Linkedlist will contains all the elements without repetition if a and b are repeated then it should display once
11th Sep 2023, 7:00 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Comocate the coding block
12th Sep 2023, 9:21 AM
Christiana Ahenkorah
Christiana Ahenkorah - avatar
0
Am finding it hard to understand some certain things here pls can someone help me Vishakha
12th Sep 2023, 5:20 PM
James Wayne
James Wayne - avatar
0
I have not seen any codebits drop yet for review, this is an interesting assignment.
12th Sep 2023, 10:27 PM
William Owens
William Owens - avatar