Suppose there is a unsorted array A, and it contains an element x (x is the pointer of the element), and every element has a satellite variable k. So, we can get the followi
Worst case time complexity for deletion operation in a sorted array is O(n),
If the array is not sorted and it is mentioned that after deletion operation
order of the array shouldn't be altered then time complexity will be same as O(n)
otherwise it will be O(1).