資料結構›Ch2 陣列與字串第 4 題/共 6 題
4. C++ Vector、Amortized Analysis、Dynamic Array
#DS-02-004易C++ VectorAmortized AnalysisDynamic Array
- This question considers "vector" in C++ STL. The usage of vector is very similar to a regular array in C/C++ in that it supports direct access. In addition, it also supports the operation push_back, which adds an element at the end of a vector. As a result, we do not need to declare the size for a vector.
📄 交大110
▤完整推導請見《WH 資工筆記 · 資料結構》Ch2 陣列與字串