https://leetcode.com/problems/linked-list-cycle/ 3. 2022/04/29 시도 소요시간: 12분 public class Solution { public boolean hasCycle(ListNode head) { if (head == null || head.next == null) { return false; } ListNode slow = head; ListNode fast = head; while (fast != null && fast.next !=null) { slow = slow.next; fast = fast.next.next; if (fast == slow) { return true; } } return false; } } 풀이 접근 과정 edge케이스 ..