Generate All Parentheses [Two Solutions]
Problem Link - https://leetcode.com/problems/generate-parentheses/ and https://www.interviewbit.com/problems/generate-all-parentheses-ii/
Method 1: Iterative solution using BFS
class Solution {
public List<String> generateParenthesis(int n) {
...
booleanbit1.hashnode.dev1 min read