Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Swap Nodes solution in Clear category for Swap Nodes by JimmyCarlos
def swap_nodes(A):
for i in range(0,len(A),2):
A[i:i+2] = A[i:i+2][::-1]
return A
May 6, 2019