MCPcopy Create free account
hub / github.com/careercup/ctci / setLeftChild

Method setLeftChild

java/CtCILibrary/CtCILibrary/TreeNode.java:18–23  ·  view source on GitHub ↗
(TreeNode left)

Source from the content-addressed store, hash-verified

16 }
17
18 public void setLeftChild(TreeNode left) {
19 this.left = left;
20 if (left != null) {
21 left.parent = this;
22 }
23 }
24
25 public void setRightChild(TreeNode right) {
26 this.right = right;

Callers 2

insertInOrderMethod · 0.95
createMinimalBSTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected