MCPcopy
hub / github.com/careercup/ctci / peek

Method peek

java/Chapter 3/Question3_5/MyQueue.java:33–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 public T peek() {
34 shiftStacks();
35 return stackOldest.peek(); // retrieve the oldest item.
36 }
37
38 public T remove() {
39 shiftStacks();

Callers 9

mainMethod · 0.95
addNewNumberMethod · 0.45
getMedianMethod · 0.45
minMethod · 0.45
minMethod · 0.45
addMethod · 0.45
getNextSongToPlayMethod · 0.45
removeMinMethod · 0.45
getKthMagicNumberMethod · 0.45

Calls 1

shiftStacksMethod · 0.95

Tested by

no test coverage detected