在对头部和尾部进行操作时,LinkedList的效率通常比较高。
https://blog.csdn.net/qikang_/article/details/110337135