typo
This commit is contained in:
parent
db8befc81f
commit
7e9d5f0f93
@ -39,7 +39,7 @@ def solve(input):
|
|||||||
break
|
break
|
||||||
if found:
|
if found:
|
||||||
#print("collapsing ({:,} {:,}) and ({:,} {:,}) -> ({:,} {:,})".format(x,y,lo,hi,min(x,lo),max(y,hi)))
|
#print("collapsing ({:,} {:,}) and ({:,} {:,}) -> ({:,} {:,})".format(x,y,lo,hi,min(x,lo),max(y,hi)))
|
||||||
# if x <= lo <= hi < y then the range is unchanged and we don't need to update flattened[i].
|
# if x <= lo <= hi <= y then the range is unchanged and we don't need to update flattened[i].
|
||||||
# otherwise we need to add the new range to the queue to see if it can be merged with any other entries.
|
# otherwise we need to add the new range to the queue to see if it can be merged with any other entries.
|
||||||
if lo < x or hi > y:
|
if lo < x or hi > y:
|
||||||
del flattened[i]
|
del flattened[i]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user