Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
marvy
on July 3, 2021
|
parent
|
context
|
favorite
| on:
An efficient way to make hash maps with insertion ...
Ooh nice! I didn't think of that! Since appending to an array is cheap, you can just move-to-end instead of move-to-front, and then iterate in "reverse" order, so from the outside everything seems to Just Work.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: