全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Dynamic array, size and capacity?

又称: dynamic array · size (of a dynamic array) · capacity (of a dynamic array)

Definition 14.3 University Computer Science — Year 1 · 第 14 章 — Dynamic Arrays and Amortised Analysis

A dynamic array stores a sequence in a block of memory larger than needed. Its size is the number of elements, its capacity the number of cells in the block. Adding an element to a full array first moves the elements to a larger block, whose capacity is a constant factor larger.

在原文中阅读 →