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

Method Peek

tasks/232.go:39–41  ·  view source on GitHub ↗

** Get the front element. */

()

Source from the content-addressed store, hash-verified

37
38/** Get the front element. */
39func (this *MyQueue) Peek() int {
40 return this.stack[0]
41}
42
43/** Returns whether the queue is empty. */
44func (this *MyQueue) Empty() bool {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected