算法時間複雜度對比圖

Name Insert Access Search Delete Comments Array O(n) O(1) O(n) O(n) Insertion to the end is O(1). Details here. (Hash)Map O(1)* O(1)* O(1)* O(1)* Rehashing might affect insertion time. Details here. M
相關文章
相關標籤/搜索