Computer Science, asked by priyankaj19bsr, 8 months ago

various operations of the list ADT with example​

Answers

Answered by kalarema45
2

Answer:

The List ADT

OperationDescriptionE remove(int pos)remove and return the item at position pos in the List, moving the items originally in positions pos+1 through size()-1 one place to the left to fill in the gap (error if pos is less than 0 or greater than or equal to size())

Answered by swatianurish
1

Answer:

hey!

Explanation:

push() – Insert an element at one end of the stack called top. pop() – Remove and return the element at the top of the stack, if it is not empty. peek() – Return the element at the top of the stack without removing it, if the stack is not empty. size() – Return the number of elements in the stack.

Similar questions