Merge Two Lists
Dễ🏗️ Cấu trúc dữ liệu 5000ms 256MB
Merge Two Lists
Đề bài
Gộp hai danh sách sắp xếp.
Ví dụ
Ví dụ 1:
Input: [1,2,4], [1,3,4]
Output: [1,1,2,3,4,4]
Ví dụ 2:
Input: [], [0]
Output: [0]
Ràng buộc
- Dữ liệu đầu vào luôn hợp lệ
Case 1
Input = [1,2,4]\n[1,3,4]
Output = [1,1,2,3,4,4]
Case 2
Input = []\n[0]
Output = [0]