Académique Documents
Professionnel Documents
Culture Documents
NULL
info prev
info prev
info
Operations
addFirst(x)
Adds an element with info=x at the beginning of the linked list
addLast(x)
Adds an element with info=x at the end of the linked list
removeFirst()
Removes the first element of the linked list
removeLast()
Removes the first element of the linked list
findFirstOccurrence(x)
Returns a pointer to the first element of the linked list for which info==x
findLastOccurrence()
Returns a pointer to the last element of the linked list for which info==x
removeFirstOccurrence(x)
Removes the first element of the linked list whose info field is equal to x
removeLastOccurrence(x)
Removes the last element of the linked list whose info field is equal to x
isEmpty()
Returns 1 if the linked list is empty and 0 otherwise