+1 (218) 451-4151
glass
pen
clip
papers
heaphones

Suppose we want to extend the PositionalList abstract data type with a method, indexOf(p), that…

Suppose we want to extend the PositionalList abstract data type with a method, indexOf(p), that…

Suppose we want to extend the PositionalList abstract data type with a method, indexOf(p), that returns the current index of the element stored at position p. Show how to implement this method using only other methods of the PositionalList interface (not details of our LinkedPositionalList implementation).