Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/qiyuangong/leetcode
/ peek
Method
peek
java/716_Max_Stack.java:65–67 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
63
}
64
65
public
int
peek() {
66
return
tail.prev.val;
67
}
68
69
public
Node unlink(Node node) {
70
node.prev.next = node.next;
Callers
9
findUnsortedSubarray
Method · 0.45
thirdMax
Method · 0.45
add
Method · 0.45
validateStackSequences
Method · 0.45
ping
Method · 0.45
top
Method · 0.45
push
Method · 0.45
top
Method · 0.45
getMin
Method · 0.45
Calls
no outgoing calls
Tested by
1
findUnsortedSubarray
Method · 0.36