why is my brute force(O((n1+n2)log(n1+n2))) solution faster than the optimised solution(O(n1+n2))?

前端 未结 0 815
名媛妹妹
名媛妹妹 2021-01-15 18:03

I was working on merging 2 sorted array of lengths n1 and n2 to return a sorted array of length n1+n2. My brute force solution is supposed to have Time complexity of O((n1+n

相关标签:
回答
  • 消灭零回复
提交回复
热议问题