MCPcopy Create free account
hub / github.com/crossoverJie/JCSprout / Node

Class Node

src/main/java/com/crossoverjie/algorithm/LinkLoop.java:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11public class LinkLoop {
12
13 public static class Node{
14 private Object data ;
15 public Node next ;
16
17 public Node(Object data, Node next) {
18 this.data = data;
19 this.next = next;
20 }
21
22 public Node(Object data) {
23 this.data = data ;
24 }
25 }
26
27 /**
28 * 判断链表是否有环

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected