Linked List

How To Find The Middle Node of a Linked List

Two C++ approaches to solve Leetcode 876. Middle of the Linked List. One uses the counting method. The other uses two-pointer technique. Both have runtime complexity O(N).

How To Merge Two Sorted Linked Lists

A straightforward solution to LeetCode Challenge 21. Merge Two Sorted Lists. The idea is to construct a new merged list by comparing nodes from the two input lists.