Stack

Use Stack on LeetCode

Copy this snippet and paste it to the bottom of your LeetCode editor so that you can use the Stack.

Don’t use it where the problem itself is to implement a Stack.