Question 61
HardWhat is the output of this code?
class N:
def ():
.v, .nx = v, nx
():
h =
x (xs):
h = N(x, h)
h
():
out = []
h:
out.append(h.v); h = h.nx
out
():
cur, n = h,
cur n < k:
cur = cur.nx; n +=
n < k:
h
prev, cur = rev_k(cur, k), h
_ (k):
cur.nx, prev, cur = prev, cur, cur.nx
prev
(show(rev_k(make([, , , , , , , ]), )))