template originalSource() = # {.checks: off.} include cplib/tmpl/citrus import cplib/graph/graph import cplib/tree/prufer proc prufer_encode(g: UnWeightedUnDirectedGraph): seq[int] = var ans = newSeq[int]() var n = g.len var d = newSeqWith(n, 0) for u in 0.. u: continue d[u] += 1 d[v] += 1 var hq = initHeapQueue[int]() var alr = newSeqWith(n, false) for i in 0..= z.len: break\x0A if (f and (1 shl b)) == 0:\x0A s.add(z[i])\x0A inc i\x0A else:\x0A let d = ord(z[i])*256+ord(z[i+1])\x0A let n = ord(z[i+2])+3\x0A i += 3\x0A for j in 0..