Question: Assignment - 7 ( Week 7 ) - Logistic Company. You're working as a software engineer at a logistics company, Ekart, which handles the delivery
Assignment Week Logistic
Company.
You're working as a software engineer at a logistics
company, Ekart, which handles the delivery of
packages across multiple regions. Recently, your
company upgraded its tracking system to merge
delivery data from two different regions. Each region
keeps track of the packages in a sorted list based on
their tracking IDs.
Due to a recent merger of regional operations, you
need to combine the delivery tracking data from both
regions into a single, sorted list of tracking IDs. This
new list should maintain the sorted order so that
further processing can be done efficiently.
Your task is to write a program that merges two sorted
lists of tracking IDs from these regions into one single
sorted list. The tracking IDs in each list are unique and
sorted in ascending order.
Input Format:
The first line contains an integer the number of
tracking IDs in the first region.
The second line contains integers representing the
sorted tracking IDs from the first region.
The third line contains an integer the number of
tracking IDs in the second region.
The fourth line contains n integers representing the
sorted tracking IDs from the second region.
Output Format: Output a single line containing the
merged sorted list of tracking IDs.
Sample Test Case:
Sample Output:
Test Result
Fail
tests passed out of tests
Test Case
Faill
Input
Your Output
in cpp program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
