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

Method convert

java/Chapter 17/Question17_13/QuestionC.java:77–82  ·  view source on GitHub ↗
(BiNode root)

Source from the content-addressed store, hash-verified

75 }
76
77 public static BiNode convert(BiNode root) {
78 BiNode head = convertToCircular(root);
79 head.node1.node2 = null;
80 head.node1 = null;
81 return head;
82 }
83
84 public static void concat(BiNode x, BiNode y) {
85 x.node2 = y;

Callers 1

mainMethod · 0.95

Calls 1

convertToCircularMethod · 0.95

Tested by

no test coverage detected