Problem 1087 · Medium

Brace Expansion

Each brace group offers letters to pick from; walking the groups in order yields every combination, which comes out sorted.

Open the interactive visualisation