Question 3676 – Data-Structures
November 28, 2023
Question 3697 – Data-Structures
November 28, 2023
Question 3676 – Data-Structures
November 28, 2023
Question 3697 – Data-Structures
November 28, 2023

Question 3678 – Data-Structures

In how many ways can the string
A ∩ B – A ∩ B – A
be fully parenthesized to yield an infix expression?

Correct Answer: B

Question 407 Explanation: 
In this problem look very difficult to solve, but problem is following standard formula only.
Step-1: Total number of letters/operands with duplication is 5.
Step-3: To find total number of ways, we have catalan formula.
Here, n=5
Catalan number = (2n)! / (n! * (n+1)!)
= (2*5)! / (5! * (5+1)!)
= 10! / (5! * 6!)
= 14
Note: We used catalan formula because they given in fully parenthesized to yield an infix expression.
A
15
B
14
C
13
D
12
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!