3 ms·However list splice is O(1), since it doesn't have to count how many items it moves.by josefx 5y agoHowever list splice is O(1), since it doesn't have to count how many items it moves.