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