InterviewSolution
Saved Bookmarks
| 1. |
Time complexity of merging two unsorted list of size m+n is |
| Answer» UST WONDERING what is the time complexty of merging two sorted arrays of SIZE n and m, given that n is ALWAYS greater than m.I was thinking of using merge sort, which I assume in this case will consume O(log n+m).I am not really good with big-oh and stuff. Please SUGGEST me the time complexity for this problem and let me know if there is an even optimized way of solving the problem.Thanks in advance@chetan2222 | |