Question
Which of the following is true about the time complexity
of Merge Sort?Solution
Correct Option: Merge Sort (C) has a time complexity of O(n log n) in both the best and worst cases due to its divide-and-conquer approach, where the list is recursively split and merged. Why Other Options Are Wrong: A) O(n), O(n^2): Merge Sort does not have a quadratic time complexity in the worst case, nor does it achieve linear time in the best case. B) O(log n), O(log n): This is incorrect as merge sort deals with linear elements and requires O(n log n) time due to both sorting and merging. D) O(n), O(n log n): While some algorithms achieve linear time in the best case, Merge Sort consistently performs at O(n log n). E) O(n^2), O(n^2): This complexity is associated with algorithms like bubble sort in the worst case, not Merge Sort.
__________ and PhonePe have collaborated to provide a range of inclusive car and bike insurance products directly to users through the PhonePe platform....
The Supreme Court of India declared that 'Right to Safe Road Travel' is an integral part of which Article of the Constitution?
In the Junior World Badminton Championship final, Tanvi Sharma lost to which opponent?
Former Rajya Sabha MP Joginapally Santosh Kumar was honoured as 'Global Green Icon' at the World Climate Leaders Conclave 2026. Where was this conclave ...
Which company will enhance Norway’s critical financial infrastructure by partnering with BankID BankAxept AS, Norway’s national payment and electron...
Which of the following statements is/are correct about semiconductor units in India?
1. The first semiconductor unit in Sanand was approved in Ju...
The United Nations General Assembly declared 15 May as the annual International Day of Families through which resolution adopted in _______?Â
What is the primary focus of the Logistics Ease Across Different States (LEADS) 2024 report?
The ‘INSPIRE’ program extends the existing perks, including preferential interest rates, priority banking services, and doorstep banking facilities,...
The RBI has canceled the licence of two cooperative banks — Sri Sharada Mahila Co-operative Bank, Tumkur, Karnataka and Harihareshwar Sahakari Bank, W...