Something like merge sort should do. On Sat, Jul 3, 2010 at 12:00 AM, ANKUR BHARDWAJ <ankibha...@gmail.com> wrote: > Given an array of n elements and an integer k where k<n. Elemnts > {a[0].....a[k] and a[k+1].....a[n] are already sorted. Give an > algorithm to sort in O(n) time and O(1) space. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > >
-- Siddharth Prakash Singh http://www.spsneo.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.