diff --git a/index.php b/index.php new file mode 100644 index 000000000..fae1c3c3c --- /dev/null +++ b/index.php @@ -0,0 +1,80 @@ +next : $headB; + $pointerB = $pointerB ? $pointerB->next : $headA; + + if ($pointerA === $pointerB) { + return $pointerA; + } + } + + return $pointerA; + } +} \ No newline at end of file