Algorithm cost for adding or removing an element in other position

Average Rating
0 out of 5 stars. 0 votes.

Algorithm cost for adding or removing an element in other position

O(n-i)LinearN = number of elementsL = index position