Stai usando un browser non aggiornato. Potresti non visualizzare correttamente questo o altri siti web. Dovreste aggiornare o usare un browser alternativo.
When you talked about "split" arrays, come in my mind the "merge sort" algorithm which is probably really near at what you are looking for. Best approach is to count the size of the array, divide it in half, and read it from the end ... or you may create a 3th array and use it for swap ... you know ... in computer science there are many ways to do the same thing ...