NeetCode #320LC-2130MediumLinked List
← Back to All Problems#320 · #2130 · Maximum Twin Sum of a Linked List(链表最大孪生和)
📌 Problem Statement & Constraints
In a linked list of even length
n, the twin of node i is node n - 1 - i. The twin sum is the sum of a node and its twin. Return the maximum twin sum. Constraints: 2 <= n <= 10^5, n is even, 1 <= Node.val <= 10^5.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!