s******e 发帖数: 108 | 1 Given 2 range array, output the intersection array.
a: [1,5], [8,15], [30,90]
b: [2,7],[12,18],[80,100]
output:
[2,5],[12,15],[80,90] | b*****c 发帖数: 1103 | | f*******t 发帖数: 7549 | | B*******1 发帖数: 2454 | 4 isn't it
output:
[2,5],[12,15],[80,90]
【在 s******e 的大作中提到】 : Given 2 range array, output the intersection array. : a: [1,5], [8,15], [30,90] : b: [2,7],[12,18],[80,100] : output: : [2,5],[12,15],[80,90]
| g*****i 发帖数: 2162 | 5 不用interval tree, linear扫一遍就可以了.楼主给的output确实错了,呵呵.
话说palantir待遇如何有人知道吗? | k****n 发帖数: 369 | 6 are they sorted?
【在 s******e 的大作中提到】 : Given 2 range array, output the intersection array. : a: [1,5], [8,15], [30,90] : b: [2,7],[12,18],[80,100] : output: : [2,5],[12,15],[80,90]
| l*********y 发帖数: 142 | 7 #include
#include
#include
#include
#include
#include
#include
| j********x 发帖数: 2330 | 8 太傻比了。。。
(你问的问题比我简单多了),我遇到的都是些没啥深度的问题。。。
我问的问题比你简单多了。。。
【在 s******e 的大作中提到】 : Given 2 range array, output the intersection array. : a: [1,5], [8,15], [30,90] : b: [2,7],[12,18],[80,100] : output: : [2,5],[12,15],[80,90]
|
|
|