An rrb-tree is an effective O(1) time for every category. Scala's Vector type implements one.
If interested about the data structure: https://youtu.be/sPhpelUfu8Q
Scala bigO doc: https://docs.scala-lang.org/overviews/collections-2.13/perfo... Scala's doc on it: https://github.com/nicolasstucki/scala-rrb-vector/blob/maste...
An rrb-tree is an effective O(1) time for every category. Scala's Vector type implements one.
If interested about the data structure: https://youtu.be/sPhpelUfu8Q
Scala bigO doc: https://docs.scala-lang.org/overviews/collections-2.13/perfo... Scala's doc on it: https://github.com/nicolasstucki/scala-rrb-vector/blob/maste...