The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
103 views

The answer is given as 14.I calculated using Catalan number but the answer did not come as 14.

asked in Programming & DS by Active (1.4k points) | 103 views
answer is coming as 14, it is right. see apply the formula 2nCn/n+1*(n!) now you need to multiply by n!  also as objects are different so you need to take into account the permutation as each tree would be distinct when u interchange the objects position as each of them is distinct.

Please log in or register to answer this question.



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

29,138 questions
36,959 answers
92,024 comments
34,803 users