文件名称:C-language-interval-operation
介绍说明--下载内容均来自于网络,请自行研究使用
允许两个操作,add(min,max)和del(min,max),一开始区间内为空,每个操作后算出区间内的集合,要求能自动合并、拆分集合。例如:
操作1:add(1,7) 区间内的集合:(1,7)
操作2:add(9,10) 区间内的集合:(1,7)、(9,10)
操作3:del(3,5) 区间内的集合:(1,2)、(6,7)、(9,10)
操作4:add(3,8) 区间内的集合:(1,10)-Allow two operations, add (min, max) and del (min, max), beginning within the range is empty, calculated after each operation within the set range, the request can be automatically merged, split sets. For example:
Operation 1: add (1,7) interval collection: (1,7)
Action 2: set interval of add (9,10): (1,7), (9,10)
Action 3: set interval of del (3,5): (1,2), (6,7), (9,10)
Operation 4: add (3,8) interval collection: (1,10)
操作1:add(1,7) 区间内的集合:(1,7)
操作2:add(9,10) 区间内的集合:(1,7)、(9,10)
操作3:del(3,5) 区间内的集合:(1,2)、(6,7)、(9,10)
操作4:add(3,8) 区间内的集合:(1,10)-Allow two operations, add (min, max) and del (min, max), beginning within the range is empty, calculated after each operation within the set range, the request can be automatically merged, split sets. For example:
Operation 1: add (1,7) interval collection: (1,7)
Action 2: set interval of add (9,10): (1,7), (9,10)
Action 3: set interval of del (3,5): (1,2), (6,7), (9,10)
Operation 4: add (3,8) interval collection: (1,10)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C语言区间操作\C练习第一题算法描述.doc
.............\Interval_Operation.c