Generation of Combinatorial Objects · Object Indices (Optional)
Lesson 8
Programming problem.
Solve the problem inverse to the previous one: reconstruct a valid bracket sequence of length 40 from its index.
Public samples
Input
3079658154
Expected output
0010000001110100101110100101100110111011