MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / Push

Method Push

tasks/232.go:27–29  ·  view source on GitHub ↗

** Push element x to the back of queue. */

(x int)

Source from the content-addressed store, hash-verified

25
26/** Push element x to the back of queue. */
27func (this *MyQueue) Push(x int) {
28 this.stack = append(this.stack, x)
29}
30
31/** Removes the element from in front of queue and returns that element. */
32func (this *MyQueue) Pop() int {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected