Y
Hacker News
new
|
ask
|
show
|
jobs
by
mtlmtlmtlmtl
1299 days ago
A lot of the time if the key is an int however you can get away with an array assuming the range is reasonably small.
Worth noting that for AOC I got by just fine with the simplest possible bucket based implementation.