shufel: (Default)
[personal profile] shufel
перетряхивая архивы:

Up till now there were quite a few known ways to sort a vector:
bubble sort, quick sort, insertion sort, heap sort etc.
it was also proven that the fastest sort possible is only O(n*logn)).
however a new sort was discovered in israel this week that can sort any vector in O(1):

char * israeli_sort (char * vector_unsorted)
{
char * vector_sorted;
vector_sorted = vector_unsorted;
return vector_sorted; /* don't worry, it will be o.k. - trust me!!! */
}

Date: 2003-11-25 04:57 am (UTC)
From: [identity profile] city-rat.livejournal.com
шмешно :)

Date: 2003-11-25 06:20 am (UTC)
From: (Anonymous)
И таки что бы Вы думали? Оно работает!

РОТФЛМАО

Date: 2003-11-25 11:18 am (UTC)
From: [identity profile] wildernesscat.livejournal.com
Шедевр! На стенку!

November 2025

S M T W T F S
      1
2 345678
9101112131415
16171819202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 23rd, 2026 10:56 pm
Powered by Dreamwidth Studios