Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Swap Nodes by kazuki.h
def swap_nodes(a):
if len(a) <= 1:
return a
else:
return [a[1], a[0]] + swap_nodes(a[2:])
April 11, 2020
Comments: