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

Method join

java/Chapter 3/Question3_3/Stack.java:17–20  ·  view source on GitHub ↗
(Node above, Node below)

Source from the content-addressed store, hash-verified

15 }
16
17 public void join(Node above, Node below) {
18 if (below != null) below.above = above;
19 if (above != null) above.below = below;
20 }
21
22 public boolean push(int v) {
23 if (size >= capacity) return false;

Callers 13

pushMethod · 0.95
__str__Method · 0.80
__str__Method · 0.80
replaceSpaceFunction · 0.80
replaceSpacesFunction · 0.80
__str__Method · 0.80
anagramFunction · 0.80
compressFunction · 0.80
simpleCompressFunction · 0.80
compressFunction · 0.80
__str__Method · 0.80
__str__Method · 0.80

Calls

no outgoing calls

Tested by 1

test_permutationsMethod · 0.64