143-Reorder-List
Fri 14 November 2025
https://leetcode.com/problems/reorder-list
import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
def reorderList(self, head: ListNode) -> None:
def findMid(head: ListNode):
prev = None
slow = head
fast = head
while fast and fast.next:
prev = slow
slow = slow.next
fast = fast.next …Category: leetcode
Read More