+ 2
Given the following permutation of a,b,c,d,e,f,g,h,i,j, what is the next permutation in lexicographic (dictionary) order?
Write your answer without any blank spaces between letters. bfajihgedc
3 Answers
+ 3
would it not be a,b,c,d,e,f,g,h,j, i?
0
without having the full context of your question (range, limits, etc.), I would assume the following:
abcdefghik
assuming a 10 character permutation with each character drawing from a pool of 26 possible letters
0
yes, if the range is limited to the letters a through j and each letter is allowed to be used only once.
The original question posted by Ashish Gupta requires us to make some assumptions and interpretations so the answer we provide will be based on those assumptions and interpretations. The question posted appears to be given to us out of context, possibly from a textbook or a classroom quiz.