in o(n) take a separate array of size 2n and for iteration a[i] and a[i+1] should have ai and bi elelemnt
On Sun, Jun 6, 2010 at 7:39 PM, sharad <[email protected]> wrote: > Convert in O(n) time: > a1a2a3a4.....aNb1b2b3b4.....bN > to > a1b2a2b2a3b3a4b4..........aNbN > > -- > 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. > > -- yezhu malai vaasa venkataramana Govinda Govinda -- 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.
