[FP] Fix interval

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2023-11-08 17:15:11 +00:00
parent b92dbfb386
commit 982942e0cf
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
def intersects(a1, b1, a2, b2): def intersects(a1, b1, a2, b2):
assert a1 <= b1 and a2 <= b2, "Os intervalos não são válidos." assert a1 <= b1 and a2 <= b2, "Os intervalos não são válidos."
return a1 <= b2 and a2 <= b1 return a1 < b2 and a2 < b1
def main(): def main():