【IT筆試面試題整理】判斷鏈表是否存在環路,並找出迴路起點

【試題描述】定義一個函數,輸入一個鏈表,判斷鏈表是否存在環路,並找出迴路起點 Circular linked list: A (corrupt) linked list in which a node’s next pointer points to an earlier node, so as to make a loop in the linked list EXAMPLE Input: A
相關文章
相關標籤/搜索