123456789 then interchange middle one of 123 and 456 12 43 56 789 now exchange in pairs except first and last i.e. 24 ->42, 35->53 1 42 53 6 789 now treat 14 as single number, 25 as single number ans 36 as single number and again apply this logic 14257 36 89 14 725 836 9
need time to program this, a bit busy... done :) Best Regards Ashish Goel "Think positive and find fuel in failure" +919985813081 +919966006652 On Thu, Jul 22, 2010 at 5:58 PM, UMESH KUMAR <[email protected]>wrote: > Qn:-in the given array elements > a1a2a3a4......anb1b2b3b4.......bnc1c2c3c4........cn > without take a extra memory how to merge just like? > > a1b1c1a2b2c2a3b3c3............................anbncn > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
