Better HN
top
new
best
ask
show
jobs
Log in
Sign up
dietrologia
3 karma · joined Mar 15, 2021 (5y ago) · 2 submissions
Submissions
comment 5y ago ·
link
·
parent
I wonder why the C++ version opted for an unordered_map, copied into a vector and then sorted. I'd be curious to see if using an std::map would work better.
comment 5y ago ·
link
·
parent
I wonder why the C++ version didn't use a map, instead of doing unordered_map and then copying into a vector.