Leetcode 876. Middle of Linked List Show Link: Middle of the Linked List - LeetCodeGiven a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle…leetcode.com Description
Find the middle of a given linked list
Given a singly linked list, find the middle of the linked list. For example, if the given linked list is 1->2->3->4->5 then the output should be 3.
|