Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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. */
39
func
(this *MyQueue) Peek() int {
40
return
this.stack[0]
41
}
42
43
/** Returns whether the queue is empty. */
44
func
(this *MyQueue) Empty() bool {
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected