[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 4ac3aae9ea
commit c4f71fc5fa
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):
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():