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 dannedved
def swap_nodes(a):
for i in range(len(a) // 2):
a[i * 2:(i + 1) * 2] = a[i * 2:(i + 1) * 2][::-1]
return a
July 22, 2020