+ 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

27th Mar 2018, 6:16 PM
Ashish Gupta
Ashish Gupta - avatar
3 Respuestas
+ 3
would it not be a,b,c,d,e,f,g,h,j, i?
23rd Apr 2018, 3:18 PM
Michael Gribskov
Michael Gribskov - avatar
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
24th Apr 2018, 9:39 PM
Tim Leon
Tim Leon - avatar
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.
3rd Oct 2018, 3:44 PM
Tim Leon
Tim Leon - avatar