I currently (conceptually) have:
IEnumerable<Tuple<long, long, Guid>>
given a long , I need to find the "appropriate" GUID .
long pairs should never intersect, although there may be spaces between pairs, for example:
1, 10, 366586BD-3980-4BD6-AFEB-45C19E8FC989 11, 15, 920EA34B-246B-41B0-92AF-D03E0AAA2692 20, 30, 07F9ED50-4FC7-431F-A9E6-783B87B78D0C
For each long entry, there must be exactly 0 or 1 GUID s matches.
therefore input 7 should return 366586BD-3980-4BD6-AFEB-45C19E8FC989
input 16 should return null
Update: I have about 90K pairs
How to save this memory for quick search?
thanks
source share