Talk:Best shuffle: Difference between revisions

Line 64:
 
Also the code doesn't shuffle the characters. Perhaps you should imagine the routine being used in a word game or puzzle. The results that this code produces, although clever in the way it solves the problem, wouldn't be very satisfactory. [[User:Fwend|Fwend]] 18:53, 6 January 2011 (UTC)
 
: The problem with the C entry is that it does not work in the general case. Consider, for example:
 
<lang>Enter String : aabbbbaa
 
aabbbbaa, aabbbbaa, (0)</lang>
 
:(The correct answer, here, would be bbaaaabb).
 
--[[User:Rdm|Rdm]] 20:24, 6 January 2011 (UTC)
6,962

edits