4 ms·
Normally I wouldn't expect it either, but if you know it caps out at single-digit numbers of elements, then it's not the worst idea. I'd still just use a plain
by munchbunny 5y ago
Normally I wouldn't expect it either, but if you know it caps out at single-digit numbers of elements, then it's not the worst idea.
I'd still just use a plain array, but my point was that hash maps aren't necessarily big and unwieldy.