I think for count it should be count=(int)(k/N), instead of (int)k/5...
On Wed, Feb 15, 2012 at 6:00 PM, TUSHAR <tusharkanta.r...@gmail.com> wrote: > @amrit,@Pranav and others : Thanks a lot.. > > > > On Feb 15, 11:35 am, amrit harry <dabbcomput...@gmail.com> wrote: > > @tushar > > lower bound for sorting an array is nlogn. > http://www.bowdoin.edu/~ltoma/teaching/cs231/fall11/Lectures/6-moreso... > > > > On Wed, Feb 15, 2012 at 11:16 AM, TUSHAR <tusharkanta.r...@gmail.com> > wrote: > > > That means,,,we have to sort the array first in O(n). > > > Is there any way to sort the array inplace in O(n) ? > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Algorithm Geeks" group. > > > To post to this group, send email to algogeeks@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. > > > > -- > > AMRIT > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@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. > > -- *Priyatosh Tiwari* *B. Tech. Third Year(CSE)* *MNNIT Allahabad* -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@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.