Ex4. Is Sublist? (20 points) • Write an implementation of the IsSublist(otherlist) function that takes another list as p
Posted: Wed Mar 30, 2022 9:19 am
Ex4. Is Sublist? (20 points) • Write an implementation of the IsSublist(otherlist) function that takes another list as parameter and checks if it is a sub-list of the current list. List A is a sub-list of list B if every element in A also belongs to B. For simplicity, assume that the values within each list are distinct; that is, no list has duplicate values with it.