Vidyalelo
Data Structure · Q223

Miscellaneous on Data Structures

Programming · Data Structure · question 223

Q223

What will be the lexicographical order of permutations formed from the array arr=1,2,3?

A.
{{2,1,3},{3,2,1},{3,1,2},{2,3,1},{1,2,3},{1,3,2}}
B.
{{1,2,3},{1,3,2},{2,3,1},{2,1,3},{3,2,1},{3,1,2}}
C.
{{1,2,3},{1,3,2},{2,1,3},{2,3,1},{3,1,2},{3,2,1}}
Answer
D.
{{2,1,3},{3,1,2},{3,2,1},{2,3,1},{1,2,3},{1,3,2}}

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board