Fixing remove runtime
parent
411ada4ba8
commit
7744492f82
|
@ -13,8 +13,8 @@ textbook: "Ch. 7"
|
|||
<dd><b>Cons:</b> $O(n)$ <tt>remove</tt>, <tt>insert</tt>, <tt>append</tt></dd>
|
||||
|
||||
<dt>ArrayBuffer[T]</dt>
|
||||
<dd><b>Pros:</b> $O(1)$ <tt>apply</tt>, <tt>update</tt>, <tt>remove</tt></dd>
|
||||
<dd><b>Cons:</b> Amortized $O(1)$ <tt>insert</tt>, <tt>append</tt></dd>
|
||||
<dd><b>Pros:</b> $O(1)$ <tt>apply</tt>, <tt>update</tt>, Amortized $O(1)$, <tt>append</tt></dd>
|
||||
<dd><b>Cons:</b> $O(n)$ <tt>remove</tt>, <tt>insert</tt></dd>
|
||||
|
||||
<div class="fragment">
|
||||
<dt>List[T] (linked list)</dt>
|
||||
|
|
Loading…
Reference in New Issue