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

Why would you do that when you can just keep a 10B-long bit vector.