edited by
6,771 views
32 votes
32 votes

You have $n$ lists, each consisting of $m$ integers sorted in ascending order. Merging these lists into a single sorted list will take time:

  1. $O(nm \log  m)$
  2. $O(mn \log  n)$
  3. $O(m + n)$
  4. $O(mn)$
edited by

5 Answers

Answer:

Related questions

7 votes
7 votes
1 answer
2
go_editor asked May 23, 2016
934 views
You are given two sorted lists of integers of size $m$ and $n$. Describe a divide and conquer algorithm for computing the $k$-th smallest element in the union of the two ...