Question: Need help on problem #2 Write a pseudocode algorithm to perform each of the operations below. Be sure to draw pictures as you work through

Need help on problem #2

Need help on problem #2 Write a pseudocode algorithm to perform each

Write a pseudocode algorithm to perform each of the operations below. Be sure to draw pictures as you work through each algorithm. You cannot work on linked lists without drawing pictures and the homework will not be accepted without showing the pictures! a) Determine the number of nodes in a list. b) Determine the sum of the integers in a list. c) Append a node to the end of a list. d) Concatenate two lists. e) Free all the nodes in a list. f) Delete the last node from a list. Select three methods in the ObjectList class to work through algorithmically. Describe any special cases or boundary conditions that might exist for each of the three methods selected. Be sure to draw pictures as you work through the methods. Remember that you cannot work on linked lists without drawing pictures. The homework will not be accepted without submitting the pictures! Write a Java method with the signature: public ObjectList intersect (ObjectList list1, ObjectList list2) that accepts two unordered linear linked lists and returns a third linear linked list whose nodes contains the intersection of the two original linear linked lists. Note that the intersection of two lists is a new list containing the elements that the two list have in common, without modifying the two original lists. Describe any boundary conditions that might exist

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!