← 返回 meta 的题目列表Merge Three Sorted Arrays
类型:online_judge
Given three sorted arrays in ascending order, merge them into a single sorted array. Aim to maximize efficiency.
Example:
Input:
[1, 4, 7]
[2, 5, 8]
[3, 6, 9]
Output:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
Constraints:
Each array's length does not exceed 1000.
Elements of arrays are integers.
The output should be in ascending order.
Example
Input
[1, 4, 7]
[2, 5, 8]
[3, 6, 9]