Single Choice Easy

QWhat is the time complexity of the merge sort algorithm?

ID: #5725 Divide and Conquer 282 views
Question Info
#5725Q ID
EasyDifficulty
Divide and ConquerTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(n)
  • B O(n log n)
  • C O(n^2)
  • D O(log n)
Correct Answer

Explanation

Answer: O(n log n)

Explanation: The merge sort algorithm has a time complexity of O(n log n), which is considered efficient. It involves dividing the list into smaller sublists, sorting them independently, and then merging them together.

Share This Question

Challenge a friend or share with your study group.