我几乎可以肯定这应该是一个重复的,但我搜索了一段时间,但没有找到答案。 我应该在C#中使用能够有效地替代C ++向量和deque。 即我需要effieciently支持直接索引的结构,同时还支持从一端或两端再次(取决于载体或双端队列的情况下)以有效的方式删除。
在Java中我通常使用ArrayList至少为向量但为C#,我发现这个源 ,指出: ArrayList resizes dynamically. As elements are added, it grows in capacity to accommodate them. It is most often used in older C# programs.
ArrayList resizes dynamically. As elements are added, it grows in capacity to accommodate them. It is most often used in older C# programs.
。 那么什么是新的方式来做到这一点? 并再次什么我为双端队列时怎么办?