lil_shi@programming.dev to Programming@programming.dev · 8 months agoWhat are some cool and obscure data structure you know of?message-squaremessage-square51linkfedilinkarrow-up1152arrow-down10
arrow-up1152arrow-down1message-squareWhat are some cool and obscure data structure you know of?lil_shi@programming.dev to Programming@programming.dev · 8 months agomessage-square51linkfedilink
minus-squaremcmodknower@programming.devlinkfedilinkarrow-up2·8 months agoHaving a fixed iteration order, but an amortized O(1) access time. For example if you have a map of uuids to players in a game, and want to use the same map for doing operations to all of them in the order they joined.
Having a fixed iteration order, but an amortized O(1) access time.
For example if you have a map of uuids to players in a game, and want to use the same map for doing operations to all of them in the order they joined.