Using Catalan Numbers
One answer to this quesion.
In a given String these 6 conditions need to exists together:
- String's length is 100
- Only one curly brackets "{" is at index 1
- Only one curly brackets "}" is at index 24
- The rest of the brackets are rounded "("
- Every substring that begins at index number 25 and ends at before index 50 is unbalanced ( invaild string ) and every substring that begins at index 25 and ends at index 50 is balanced ( valid string )
- First index is "1"
Question: How many options do I have to build a valid String concerning the conditions above?