数组和链表是程序中常用的两种数据结构,也是面试中常考的面试题之一.然而对于很多人来说,只是模糊的记得二者的区别,可能还记得不一定对,并且每次到了面试的时候,都得把这些的概念拿出来背一遍才行,未免有些麻烦.而本文则会从执行过程图以及性能评测等方面入手,让你更加深入的理解和记忆二者的区别,有了这次深入的学习之后,相信会让你记忆深刻. 数组 在开始(性能评测)之前我们先来回顾一下,什么是数组? 数组的定义如下: 数组(Array)是由相同类型的元素(element)的集合所组成的数据结构,分配一块连续…