← 返回 google 的题目列表Split and Sort
类型:online_judge
Given an array, split it into two subarrays and sort the elements within each subarray. Then, merge these two subarrays into a single sorted array and return it. Provide an algorithm to perform this operation, along with test cases. Clearly specify input format and output requirements.
Example
Input
[9, 8, 7, 6, 5, 4, 3, 2, 1]