This commit is contained in:
Electrominch
2022-10-06 03:12:43 +03:00
parent cb2f99c3a8
commit c388b14c3f

View File

@@ -4,6 +4,8 @@ public class Solution
{ {
public ListNode? DetectCycle(ListNode head) public ListNode? DetectCycle(ListNode head)
{ {
if(head == null)
return null;
ListNode? cur = head; ListNode? cur = head;
int bit = 1 << 28; int bit = 1 << 28;
int curAbs = 0; int curAbs = 0;