Given an array a1b1a2b2a3b3.... , arrange it such that it becomes
a1a2a3...b1b2b3...

Its size can be odd or even. [ array can be a1b1a2 , a1b1a2b2. ]

If we use an additional array to store the result, the problem becomes
trivial.

But, with out using an additional array, how will you re-arrange the
given array in place?

Any help, welcome.

Thanks in advance,
Arun.


--~--~---------~--~----~------------~-------~--~----~
 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-beta.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to