Generate All Attribute Combinations

Given a map of N attributes, where each attribute maps to a list of possible values, generate every possible attribute-value combination (the Cartesian product of the lists).

For example:

...

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: