Arrays In Data Structures - Study Mode
[#131] Which of the following form inversion in the array arr = {1,5,4,2}?
Correct Answer
(B) (5,4), (5,2), (4,2)
[#132] What is the time complexity for inserting/deleting at the beginning of the array?
Correct Answer
(B) O(n)
[#133] What is the worst case time complexity of inserting an element into the sorted array?
Correct Answer
(C) O(n)
[#134] Which of the following algorithm to rotate an array has the maximum time complexity?
Correct Answer
(A) rotate elements one by one
[#135] Which of the following is false?
Correct Answer
(C) Suffix array is always unsorted