立即學習:https://edu.csdn.net/course/play/9588/209260?utm_source=blogtoedu
判斷鏈表是否有環,不妨設置兩個結點指針,滿指針和快指針,若有環,兩個指針一定會相遇
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"typ
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragr
{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null