Create a loop for testing ( 5 is pointing to 3 )
head . next . next . next . next . next = head . next . next ; Boolean found = detectLoop ( head ) ; if ( found ) { Console . WriteLine ( " Loop ▁ Found " ) ; } else { Console . WriteLine ( " No ▁ Loop " ) ; } } }