Back to Learning Paths
LinkedList Problems

شرح LeetCode 143 - Reorder List

Reorder List Using C++ I used the slow and fast pointer (tortoise and hare) approach to find the middle node, then reversed the second half of the list and merged the two halves. Time Complexity: O(N) Space Complexity: O(1)