これが私の実行可能なコードです。 
私が行ったことはO(1)、リンクを追跡する3つの一時ノード(スペースの複雑さ)を使用して、リンクリストを崇拝することです。
これを行うことの興味深い事実は、リンクリストのサイクルを検出するのに役立つことです。先に進むと、開始点(ルートノード)に戻ることは期待できず、一時ノードの1つがnullになるはずです。ルートノードを指すことを意味するサイクルがあります。 
このアルゴリズムの時間の複雑さはでO(n)あり、空間の複雑さはO(1)です。
リンクリストのクラスノードは次のとおりです。
public class LinkedNode{
    public LinkedNode next;
}
以下は、最後のノードが2番目のノードを指す3つのノードの単純なテストケースを持つメインコードです。
    public static boolean checkLoopInLinkedList(LinkedNode root){
        if (root == null || root.next == null) return false;
        LinkedNode current1 = root, current2 = root.next, current3 = root.next.next;
        root.next = null;
        current2.next = current1;
        while(current3 != null){
            if(current3 == root) return true;
            current1 = current2;
            current2 = current3;
            current3 = current3.next;
            current2.next = current1;
        }
        return false;
    }
以下は、最後のノードが2番目のノードを指す3つのノードの単純なテストケースです。
public class questions{
    public static void main(String [] args){
        LinkedNode n1 = new LinkedNode();
        LinkedNode n2 = new LinkedNode();
        LinkedNode n3 = new LinkedNode();
        n1.next = n2;
        n2.next = n3;
        n3.next = n2;
        System.out.print(checkLoopInLinkedList(n1));
    }
}
               
              
finite amount of space and a reasonable amount of time?:)