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

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: 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... =)

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