From 982942e0cf8d0b41ccb0577f3b893badc34fb21d Mon Sep 17 00:00:00 2001 From: TiagoRG Date: Wed, 8 Nov 2023 17:15:11 +0000 Subject: [PATCH] [FP] Fix interval Signed-off-by: TiagoRG --- 1ano/1semestre/fp/aula03/ex08.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1ano/1semestre/fp/aula03/ex08.py b/1ano/1semestre/fp/aula03/ex08.py index 9ec5bec..1f05484 100755 --- a/1ano/1semestre/fp/aula03/ex08.py +++ b/1ano/1semestre/fp/aula03/ex08.py @@ -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():