Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
for step 2, swap solution in Clear category for Swap Nodes by m.kurapov
def swap_nodes(a):
for i in range(1,len(a),2):
a[i],a[i-1] = a[i-1], a[i]
return a
Nov. 22, 2021