GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
78 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)   | 78 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.

Related questions



Top Users Sep 2017
  1. Habibkhan

    6334 Points

  2. Warrior

    2202 Points

  3. Arjun

    2150 Points

  4. nikunj

    1980 Points

  5. manu00x

    1726 Points

  6. SiddharthMahapatra

    1718 Points

  7. Bikram

    1706 Points

  8. makhdoom ghaya

    1650 Points

  9. A_i_$_h

    1518 Points

  10. rishu_darkshadow

    1512 Points


25,978 questions
33,554 answers
79,344 comments
31,011 users