Fastest way to search a number in a list of ranges

前端 未结 5 841
终归单人心
终归单人心 2020-12-19 04:12

I have the following code to find a match for a number in a list of ranges.

public class RangeGroup
{
    public uint RangeGroupId { get; set; }
    public u         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 04:45

    Interval trees. were created exatcly for what you are asking for.

提交回复
热议问题