002 tree reparent cycle rejected

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

cycle rejected
10
20
30

Expected output

cycle rejected
10
20
30

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: tree, capacity: 64, source: val: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: tree, source: val: 10)
flow ~preorder click a branch to expand · @labels scroll to their anchor
preorder (expr: tree)

Test Configuration

MUST_RUN