What is the worst-case time complexity of inserting an element into a sorted…
PYQ CoCubes 2024
What is the worst-case time complexity of inserting an element into a sorted array?
- A.
O(n log n)
- B.
O(log n)
- C.
O(n)
- D.
O(n2)
Attempted by 1491 students.
Sign up free to check your answer
Sign up freeLoading lesson…

