The permutations of {a, b, c, d, e, f, g} are listed in lexicographic order. Which of the following permutations are just before and just after the permutation bacdefg?
Step-by-step Solution:
Concept: \[\] Lexicographic order is the order in which the words appear in the dictionary For the word before and after check starts from the left end \[\] Application: \[\] Set is {a, b, c, d, e, f, g} \[\] The word before bacdefg is agfedcb \[\] The word after bacdefg is bacdegf