But, deleting/adding from the middle is O(n) . Details here. Stack (array implementation), O(1), -, -, O(1), Insert/delete is last-in, ...
確定! 回上一頁