2675. Array of Objects to Matrix
Hints
Hint 1
How could you split the problem up into sub-problems?
Hint 2
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.
Hint 3
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.
Preparing judge…