What is `wasted space` parameter and why is it O(n) for a linked list
-
04-11-2019 - |
문제
I'm reading a book on data structures and there is a comparison between linked list, array and dynamic array. The parameter name is wasted space. Here are the values:
\begin{array}{cc} \text{Linked list} & O(n)\\ \text{array} & 0 \\ \text{dynamic array}& O(n) \end{array}
What is the wasted space parameter and why is it $O(n)$ for a linked list?
올바른 솔루션이 없습니다
제휴하지 않습니다 cs.stackexchange