Show the worked solutionIn a sorted array the smallest element is at the first index and the largest at the last, so minimum and maximum are \(O(1)\).
Insertion must shift every larger element one place right to keep the order: \(O(n)\) in the worst case.
Deletion must shift every later element one place left to close the gap: \(O(n)\).\[\text{Insert }O(n),\ \text{Delete }O(n),\ \text{Max }O(1),\ \text{Min }O(1).\]Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com