šŸ“¢ Too many exams? Don’t know which one suits you best? Book Your Free Expert šŸ‘‰ call Now!

  • google app store apple app store
  • āœ–

      Question

      Best case complexity of insertion sort

      is:
      A O(n²) Correct Answer Incorrect Answer
      B O(n log n) Correct Answer Incorrect Answer
      C O(n) Correct Answer Incorrect Answer
      D O(log n) Correct Answer Incorrect Answer
      E O(1) Correct Answer Incorrect Answer

      Solution

      If array is sorted, insertion sort takes linear time.

      Practice Next
      ask-question