T Trang Mắm New member Sep 16, 2021 #1 What is the time complexity for inserting/deleting at the beginning of the array? A. O(1) B. O C. O(logn) D. O(nlogn)
What is the time complexity for inserting/deleting at the beginning of the array? A. O(1) B. O C. O(logn) D. O(nlogn)
N Nguyễn Ngọc Huỳnh New member Sep 16, 2021 #2 Answer: B Explanation: All the other elements will have to be moved, hence O. Upvote 0 Downvote