0

Reconstruct a list from its prefixes
A list \$[a_1,a_2,a_3 \cdots a_n]\$ can be uniquely represented as the set of its prefixes - \$ \{\{a_1\},\{a_1, a_2\}, \{a_1,a_2,a_3\} \cdots \{a_1,a_2,a_3 \cdots a_n\}\} \$. This can be in any order - for example, \$[1, 2, 3]\$ could be represented by any of...