What will be the correct sequence of the following statements with respect to the implementation of stack in python?

1: Read the value of the topmost element (number on the topmost glass) in the STACK.

2: Insert/delete elements (glasses)

3: Find the number of elements (glasses) in the STACK

4: Check if the STACK is empty (no glasses in the stack)

1
1 → 4 → 3 → ​2
2
2 → 3→ 4 → 1
3
2 → 4 → 3 → 1
4
4 → 2 → 3 → 1

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation