lil_shi to Programming · 3 months agoWhat are some cool and obscure data structure you know of?message-squaremessage-square59linkfedilinkarrow-up1153arrow-down10
arrow-up1153arrow-down1message-squareWhat are some cool and obscure data structure you know of?lil_shi to Programming · 3 months agomessage-square59linkfedilink
minus-squaremcmodknowerlinkfedilinkarrow-up3·3 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.