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

Method setRightChild

java/CtCILibrary/CtCILibrary/TreeNode.java:25–30  ·  view source on GitHub ↗
(TreeNode right)

Source from the content-addressed store, hash-verified

23 }
24
25 public void setRightChild(TreeNode right) {
26 this.right = right;
27 if (right != null) {
28 right.parent = this;
29 }
30 }
31
32 public void insertInOrder(int d) {
33 if (d <= data) {

Callers 2

insertInOrderMethod · 0.95
createMinimalBSTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected