if the positons of females are determined ,the arrangement is done . we can simulate the removing process. so ,the first female must be placed at position kmod(x+y) ,using mod in case that k is greater than x+y. then we shrink the length of the list , the similar situation appears ,only we start at position kmod(x+y-1). This can be implemented in a linkedlist with struct of the node keeping a satellite value of the initial position.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups-beta.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---