Efficient data structure for fast random access, search, insertion and deletion

前端 未结 8 2104
灰色年华
灰色年华 2021-01-31 11:11

I\'m looking for a data structure (or structures) that would allow me keep me an ordered list of integers, no duplicates, with indexes and values in the same range.

I ne

8条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 11:47

    Howabout a Treemap? log(n) for the operations described.

提交回复
热议问题