⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’
Excalidraw Data
Text Elements
we know that when we’re building the open and close parentheses pairs before we can add a closing parentheses we have to ensure that close < open is true for instance, in the example n = 3 we expect to have 3 open and 3 close parentheses if we start with an open parentheses [(] and we close it in this iteration [()] and we want to add another parentheses we see that is close is not < open so we have add another open parentheses
Output: [”((()))”,”(()())”,”(())()”,”()(())”,”()()()”]