retagged by
632 views
3 votes
3 votes
Number of possible permutations that can be obtained using stack if the input sequence is 1, 2, 3, 4, 5 (in the order) is
retagged by

1 Answer

0 votes
0 votes
For stack and calculating the valid Permutation when the order of the insertion of element is defined we should use the CATALAN NO

$\frac{_{n}^{2n}\textrm{C}}{n+1}$ ie $\frac{_{5}^{10}\textrm{C}}{6}$ = 42

Related questions

1 votes
1 votes
1 answer
1
radha gogia asked Jul 24, 2018
1,432 views
Suppose one character at a time comes as an input from a string of letters . There is an option either to 1) print the incoming letter or to 2) put the incoming letter on...
0 votes
0 votes
1 answer
2
6 votes
6 votes
7 answers
3
Payal Rastogi asked Dec 25, 2015
5,271 views
Q.86 The number of possible boolean functions that can be defined for $n$ boolean variables over $n$-valued boolean algebra is(a) $2^{2^n}$(b) $2^{n^2}$(c) $n^{2^n}$(d) $...
0 votes
0 votes
0 answers
4
Aman Bisht 1 asked Nov 5, 2017
419 views
what is possible number of subnets that can be formed from 3 bits from hostid part in class c network ?