Fetching data...
This may take a moment
Back
1076. Brace Expansion
Medium
String
Backtracking
Stack
Breadth-First Search
Sorting
Solve on LeetCode
View Solutions
Description
Hints
Hint 1
All generated strings are of the same size. How can we generate all of these strings?
Hint 2
Do a backtracking on which each level of it has to choose one single (e.g. 'a') character or any character of the given parenthesized group (e.g. "{a,b,c}")
Similar Questions
Decode String
Medium
Letter Case Permutation
Medium
Brace Expansion II
Hard
Statistics
Acceptance
66.7%
Submissions
95,261
Accepted
63,559