From 60018ceba2bae66defd8b167c0eeae3b9da5654f Mon Sep 17 00:00:00 2001 From: vasilaki-t Date: Sun, 10 Mar 2024 21:19:12 +0500 Subject: [PATCH] HW18 --- index.php | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 index.php 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