Here is my problem:
Given a multi dimensional array: [['monday', 'saturday'], ['beginner'], ['kid', 'adult']]
I want:
['monday', 'monday-beginner', 'monday-beginner-kid', 'monday-beginner-adult', 'monday-kid', 'monday-adult',
'saturday', 'saturday-beginner', 'saturday-beginner-kid', 'saturday-beginner-adult', 'saturday-kid', 'saturday-adult',
'beginner', 'beginner-kid', 'beginner-adult',
'kid',
'adult']
Here are questions I saw that could help:
'monday-kid'or'saturday-adult'? In total you are missing 4 obvious combinations''.'kid-monday-beginner'. The difference is important for clarity, although that might be one of your sticking points of course - if you are not clear yourself on the difference between those terms, it is harder to approach the code correctly.