3 ms·
For a list there's not likely to be a difference. For an array you have to shift all the elements after the one you're removing down by one place; if you're rem
by vilya 15y ago
For a list there's not likely to be a difference. For an array you have to shift all the elements after the one you're removing down by one place; if you're removing from the start of the list you have to adjust every item in the list, but if you're removing from end you don't have to adjust any items.