Originally posted by RArun Kumar:
What is the result for shuffles(1002,101).I am unable to find the result for shuffles(1002, 101). It runs for hours. Can anyone tell the algorithm to solve this problem. Any help is appreciated.
Originally posted by Joel McNary:
Gopi, I'm not sure what you did wrong, but We get different results for a 6-card deck with a cut of 3:
Your top and bottom cards never change; you are dropping the bottom card from the bottom stack first (as opposed to the bottom card from the top stack)
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter libraryhttps://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter