Daily challenge for 2025-05-07
127. Swap Nodes in Pairs
Write a function solve that swaps every two adjacent nodes in a linked list and returns its head.
Example:Input: [1,2,3,4]Output: [2,1,4,3]
Run this challenge interactively in Python or JavaScript when the app loads.