472 views

1 Answer

0 votes
0 votes
answer should b 3n as for every element whole array is traversed as we have check whether it is present or not most appropriate when.

Related questions

1 votes
1 votes
1 answer
1
Shailin Shah asked Dec 23, 2021
646 views
2 votes
2 votes
1 answer
2
Nidhi Goyal asked Dec 13, 2016
931 views
How many distinct ways are there to split 50 identical coins among three people so that each person gets atleast 5 coins??
1 votes
1 votes
0 answers
4
Jason asked Apr 12, 2018
648 views
Given symbols:- $GGGGGAAATTTECCS$No of ways such that exactly 4 Gs out of 5 Gs are together. I am getting$ \frac{11! × 11}{3!×3!×2!} $.Some one verify it?