Fix 142
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user