Well, something with linear complexity O(n) which i have to prove, Merge sort, Insertion sort or selection sort does not have O(n) complexity. I believe that something like RadixSort, CountingSort, BucketSort altought i am not sure Thanks! D. On Sat, Dec 13, 2008 at 7:51 PM, Ignacio Vazquez-Abrams <ivazqueznet@xxxxxxxxx> wrote: > On Sat, 2008-12-13 at 19:24 +0100, David Hláčik wrote: >> Hi guys, >> >> i am really sorry for making offtopic, hope you will not kill me, but >> this is for me life important problem which needs to be solved within >> next 12 hours.. >> >> I have to create stable algorithm for sorting n numbers from interval >> [1,n^2] with time complexity O(n) . >> >> Can someone please give me a hint. Would be very very thankful! > > Merge sort? Insertion sort? Selection sort? timsort? > > -- > Ignacio Vazquez-Abrams <ivazqueznet@xxxxxxxxx> > > PLEASE don't CC me; I'm already subscribed > > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > http://lists.centos.org/mailman/listinfo/centos > > _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos