✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
In Part 4, you write the recursive inner function visit(i) for array_preorder(values):
def array_preorder(values):
result = []
def visit(i):
# TODO
pass
if values:
visit(0)
return result
Which recursive call pattern correctly fills result in preorder for an array representation?