Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alexeyshurygin
· 11y ago · 0 comments
Does it worth mentioning? Straightforward approach of storing numbers in a hash map in memory solves the problem. This may require say 40 Gb of ram w/o ANY optimizations.
Comments
[–]
GFK_of_xmaspast
11y ago
Why would you do that when you can just keep a 10B-long bit vector.