Question
61
:
What will be the lexicographical order of permutations formed from the array arr={1,2,3}?
1. {{2,1,3},{3,2,1},{3,1,2},{2,3,1},{1,2,3},{1,3,2}} 2. {{1,2,3},{1,3,2},{2,3,1},{2,1,3},{3,2,1},{3,1,2}} 3. {{1,2,3},{1,3,2},{2,1,3},{2,3,1},{3,1,2},{3,2,1}} 4. {{2,1,3},{3,1,2},{3,2,1},{2,3,1},{1,2,3},{1,3,2}}
View Answer
Discuss with Members
|
|
|
|
|
|
|
|
|
Question
70
:
What will be the output of the code that generates permutations and also has the ability to handle duplicates, for the input str[]='AA'?
1. AA 2. AA,AA 3. A,A 4. A
View Answer
Discuss with Members
|