What was the interview question? The hints from your post suggest a merge sort to me which is likely to be used when combining large presorted files into a single new sorted file.
In reply to Re: Spliting array into nested sequential arrays
by GrandFather
in thread Spliting array into nested sequential arrays
by Hameed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |