here the meaning at least asmany 0's as1's
number of zeros is equal or greater than number of 1 and string should start with 0
000111,0011,00001,00011011
its best example is balance parenthesis
means string always start with 0
Answer to a is $\frac{^{2n}C_n}{(n+1)}$ which is the Catalan number.
This is also equal to the number of possible combinations of balanced parenthesizes.
See the $5^{\text{th}}$ proof here https://en.wikipedia.org/wiki/Catalan_number#Fifth_proof
@ankit3009 This question is same is balanced parantheses right? Considering 0 as closing braces and 1 as opening braces therefore answer is Catalan number.
Yes @adad20 it is same as balanced parenthesis.
XXXYYY XYXXYY XYXYXY XXYYXY XXYXYY.
((())) ()(()) ()()() (())() (()())
((ab)c)d (a(bc))d (ab)(cd) a((bc)d) a(b(cd))
source :- https://en.m.wikipedia.org/wiki/Catalan_number
64.3k questions
77.9k answers
244k comments
80.0k users