MCPcopy
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

findUnsortedSubarrayMethod · 0.45
thirdMaxMethod · 0.45
addMethod · 0.45
pingMethod · 0.45
topMethod · 0.45
pushMethod · 0.45
topMethod · 0.45
getMinMethod · 0.45

Calls

no outgoing calls

Tested by 1

findUnsortedSubarrayMethod · 0.36