← Questions
Store words for lexicographic range queries
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Design storage for a set of words that returns every word in a lexicographic range [low, high]. For the words aa, aaa, ac, f, z, the range [a, b] gives aa, aaa, ac and [ab, b] gives ac. Discuss sorted structures (balanced trees, tries, B-trees, sorted files), inserts, and how it scales beyond one machine.
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
