Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Autism Challenge

Name: Anonymous 2011-09-05 5:45

You have array A[1..N].
Subarrays A[1..M] and A[M+1..N] (1 < M < N) are sorted in ascending order.

Task is to sort inplace A[1..N] in O(N) time and O(1) additional memory

Name: Anonymous 2011-09-05 5:55

It's unforgivable to use 1-based indexing unless your an elementary school child.

Name: Anonymous 2011-09-05 6:03

Name: 0n3n7 2011-09-05 6:20

>>1

... If you use 1-based indexing then you must have 1<=i ... =)

... You lose the fact that... memory location can be added in n-elemtns array... subsequence of natural numbers...

...Also quicksort but .. not bubble... =)

Name: Anonymous 2011-09-05 6:31

>>4
Fuck off, Mugenjohncel.

Name: Anonymous 2011-09-05 6:41

>>5
You're supposed to tell him to go back to /smuggling onions/

Name: Anonymous 2011-09-05 6:43

>>6
You were supposed to tell me to go back to /jp/.

Name: Anonymous 2011-09-05 6:53

>>4
... =)
Stop that

Name: Anonymous 2011-09-05 7:36

Name: ... =) ... =) ... =) ... =) + 2011-09-05 8:36

>>8
... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =) ... =)

Name: Anonymous 2011-09-05 9:01

>>1

It's pretty easy to do that with O(1) memory with lists, but I don't think it is possible with arrays.

Name: Anonymous 2011-09-05 11:21

>>11
O(1) = 1 Turing machine of memory.

Name: Anonymous 2011-09-05 14:28

>>10
This is like touhou but with more cancer.

Don't change these.
Name: Email:
Entire Thread Thread List