You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Problem from Hackerrank Practice > DataStructures > Stacks
2
+
**Problem from Hackerrank**
3
3
4
4
You have an empty sequence, and you will be given **N** queries. Each query is one of these three types:
5
5
6
-
- 1 x -Push the element x into the stack.
7
-
- 2 -Delete the element present at the top of the stack.
8
-
- 3 -Print the maximum element in the stack.
6
+
1.Push the element `x` into the stack.
7
+
2.Delete the element present at the top of the stack.
8
+
3.Print the maximum element in the stack.
9
9
10
-
The first line of input contains an integer, **N** . The next **N** lines each contain an above mentioned query. (It is guaranteed that each query is valid.)
10
+
The first line of input contains an integer, `N` . The next `N` lines each contain an above mentioned query. (It is guaranteed that each query is valid.)
0 commit comments