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

Method Empty

tasks/232.go:44–50  ·  view source on GitHub ↗

** Returns whether the queue is empty. */

()

Source from the content-addressed store, hash-verified

42
43/** Returns whether the queue is empty. */
44func (this *MyQueue) Empty() bool {
45 lenSt := len(this.stack)
46 if lenSt == 0 {
47 return true
48 }
49 return false
50}

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected