CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following operations is not 0(1) for an array of sorted data. You may assume that array elements are distinct.

A
All of the abov
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Find the ith largest element
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Find the ith smallest element
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Delete an element
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D Delete an element
The worst-case time complexity for deleting an element from array can become O(n).

flag
Suggest Corrections
thumbs-up
1
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Value Added Method
ECONOMICS
Watch in App
Join BYJU'S Learning Program
CrossIcon