Question DSA-TP-0029
EasyHow are two sorted arrays merged into one sorted array in linear time?
- A.
With a hash table
- B.
By sorting the concatenation with bubble sort
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Two Pointers and Sliding Window question
How are two sorted arrays merged into one sorted array in linear time?
With a hash table
By sorting the concatenation with bubble sort
Sign up free to see the answer and a step-by-step explanation.
With one pointer in each array, always taking the smaller current element
With binary search for each element