✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
In the lab, you perform the following round-trip verification test:
seq = [2, 4, 4, 2]
decoded_tree = prufer_decode(seq)
print(prufer_encode(decoded_tree) == seq)
If both functions are implemented correctly, what is printed?