Hi All, here you people are considering series as sorted except 0 as input and have to rearrange like mansion output.. do it like if there input is unsorted and will get same output.. e.g.
input: 0,2,0,8,0,1,0,4,,6,7,5,0,0,0,3 output: 1 2 3 4 5 6 7 8 0 0 0 0 0 0 time complexity: in O(n) not possible try it to in O(nlogn) space complexity : O(1) On Mon, Jun 28, 2010 at 2:04 PM, sharad kumar <sharad20073...@gmail.com>wrote: > nice soln > > -- > 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<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Thanks & Regards Umesh kewat IIIT - Hyderabad -- 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.