|
|
@ -81,9 +81,6 @@ p dests.map(&:begin).min
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
# .min
|
|
|
|
# .min
|
|
|
|
|
|
|
|
|
|
|
|
# seeds = seeds
|
|
|
|
|
|
|
|
# .each_slice(2)
|
|
|
|
|
|
|
|
# .map {|start, length| (start...start+length) }
|
|
|
|
|
|
|
|
reversed = mappings
|
|
|
|
reversed = mappings
|
|
|
|
.map {|mapping|
|
|
|
|
.map {|mapping|
|
|
|
|
Mapping.new(
|
|
|
|
Mapping.new(
|
|
|
@ -98,9 +95,6 @@ reversed = mappings
|
|
|
|
# seeds.any? { _1.cover?(source) }
|
|
|
|
# seeds.any? { _1.cover?(source) }
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
|
|
# seeds = seeds
|
|
|
|
|
|
|
|
# .each_slice(2)
|
|
|
|
|
|
|
|
# .map {|start, length| (start...start+length) }
|
|
|
|
|
|
|
|
lowest = seeds
|
|
|
|
lowest = seeds
|
|
|
|
.flat_map(&:minmax)
|
|
|
|
.flat_map(&:minmax)
|
|
|
|
.filter_map {|seed|
|
|
|
|
.filter_map {|seed|
|
|
|
|