

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The implementation details of an unordered list adt using a singly-linked list in cs 1520. It covers the search, append, and remove operations, including their preconditions and method codes. The document also discusses the need for additional data attributes to aid the implementation of remove and index methods.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


class UnsortedList: def search(self, targetItem):
def append(self, item):
itemToRemove = input(“Enter the item to remove from the Grocery list: “)
if myGroceryList.remove(itemToRemove)
def index(self, item):
def remove(self, item):
def pop(self, position = None):