Why typical Array List implementations aren't double-ended?

前端 未结 4 1713
离开以前
离开以前 2020-12-11 18:47

Why aren\'t ArrayLists generally implemented to be double-ended, which would support fast amortized insertion in the front as well as the back?

Is there

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 19:02

    In Java ArrayDeque does not implement List. I'm not sure why it doesn't.

提交回复
热议问题