arr = [
[500,1000],
[2000,4000],
[5000,8000],
[8000,9000],
[10000,12000],
[14000,20000],
[23000,30000],
]
the range of intervals represented by the known array arr [500 ~ (1, 000)]
1 the same parts should be merged into 5000-9000
.2 find the residual interval of the residual space, for example, 0500 1000-2000 4000-5000. Wait