Y
Hacker News
new
|
ask
|
show
|
jobs
by
badelectron
1327 days ago
If you want to do this with a data structure instead of a database then discrete interval encoding trees solve this problem well.
https://xlinux.nist.gov/dads/HTML/discretintrv.html