Y
Hacker News
new
|
ask
|
show
|
jobs
by
alexeyshurygin
3993 days ago
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.
1 comments
GFK_of_xmaspast
3993 days ago
Why would you do that when you can just keep a 10B-long bit vector.
link