Nested Structure Flatten and Unflatten

Problem overview from a real Xai interview:

Convert hierarchical Python dicts, lists, and tuples into 1D integer arrays and rebuild the original shape using recursive DFS and iterators for xAI.

Check more interview questions and experiences about Xai

Please log in to view interview details