leetcode

876. Middle of the Linked List

Solution

Time complexity: O(n)

Space complexity: O(1)