Unflatten: Refill a Nested Template Structure with Values from a Flat List
Problem: Unflatten a Nested Template Structure
Given a flat list of integers and a nested template structure, refill the template’s leaf integer positions in order to produce a new object with the...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
