4 lines
92 B
Ruby
4 lines
92 B
Ruby
stack = []
|
|
stack.push(value) # pushing
|
|
value = stack.pop # popping
|
|
stack.empty? # is empty?
|