MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / length

Method length

Programs/RemoveloopinLinkedList.java:109–117  ·  view source on GitHub ↗
(Node head)

Source from the content-addressed store, hash-verified

107 }
108
109 public static int length(Node head){
110 int ret=0;
111 while(head!=null)
112 {
113 ret += 1;
114 head = head.next;
115 }
116 return ret;
117 }
118
119 public static void main (String[] args){
120 Scanner sc = new Scanner(System.in);

Callers 15

mainMethod · 0.95
mainMethod · 0.80
switchLettersMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
searchMethod · 0.80
buildTreeMethod · 0.80
mainMethod · 0.80
KMPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected