I'm asking because inside a hashmap each element would have a signature, then it's easier to compare, no? #question
Why not use a majority of sorts necessary in a program inside a HashMap?
10 days ago by pool's kitten π§π·π΄ββ οΈπΈπ΄ to c/ask_experienced_devs
I'm asking because inside a hashmap each element would have a signature, then it's easier to compare, no? #question
@programming.dev
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
go to feed...
@programming.dev
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
go to feed...
I'm not sure I understand you, but the signature will most often have a separate ordering that won't help with ordering the objects themselves.
Also, there are TreeMaps, that maintain order of elements, but those do the work on every insert
save