My-LeetCode-Solvings

C# Code Challenges Solved on LeetCode


Project maintained by F4NT0 Hosted on GitHub Pages — Theme by mattgraham

876. Middle of the Linked List

Level: Easy

Language: C#

Topic: Linked List

Unit Tests: 876 - Testing Results


Given the head of a singly linked list, return the middle node of the linked list.

If there are two middle nodes, return the second middle node.

Example 1:

image1

Example 2:

image2

Constraints: