- Ex4 Is Sublist 20 Points Write An Implementation Of The Issublist Otherlist Function That Takes Another List As P 1 (17.93 KiB) Viewed 36 times
Ex4. Is Sublist? (20 points) • Write an implementation of the IsSublist(otherlist) function that takes another list as p
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Ex4. Is Sublist? (20 points) • Write an implementation of the IsSublist(otherlist) function that takes another list as p
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.