
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How could you split the problem up into sub-problems?
1.) Write a function that converts a single object into a dictionary that maps the path name to values. You can solve this recursively by keeping track of current path list.
2.) Write a function that converts a list of dictionaries into a matrix. Start by creating a list of all possible paths in any of the dictionaries. This will represent the columns.