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