You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: evaluation_function/evaluation.py
+26-25Lines changed: 26 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -398,29 +398,30 @@ def _generate_feedback(
398
398
399
399
overall_message="✓ Correct! Your algorithm meets the complexity requirements."ifis_correctelse"✗ Your algorithm does not meet the complexity requirements."
400
400
401
-
# Time complexity section
402
-
time_feedback=None
403
-
iftime_result:
404
-
time_feedback= {
405
-
"required": time_result.expected_answer,
406
-
"detected": time_result.detected_complexity,
407
-
"is_correct": time_result.is_correct,
408
-
"message": "✓ Your algorithm meets the time complexity requirement."
409
-
iftime_result.is_correct
410
-
else"✗ Your algorithm exceeds the allowed time complexity."
411
-
}
412
-
413
-
# Space complexity section
414
-
space_feedback=None
415
-
ifspace_result:
416
-
space_feedback= {
417
-
"required": space_result.expected_answer,
418
-
"detected": space_result.detected_complexity,
419
-
"is_correct": space_result.is_correct,
420
-
"message": "✓ Your algorithm meets the space complexity requirement."
421
-
ifspace_result.is_correct
422
-
else"✗ Your algorithm exceeds the allowed space complexity."
423
-
}
401
+
# # Time complexity section
402
+
# time_feedback = None
403
+
# if time_result:
404
+
# time_feedback = TimeComplexityResult(
405
+
# student_answer=
406
+
# required=time_result.expected_answer,
407
+
# detected=time_result.detected_complexity,
408
+
# is_correct=time_result.is_correct,
409
+
# message="✓ Your algorithm meets the time complexity requirement."
410
+
# if time_result.is_correct
411
+
# else "✗ Your algorithm exceeds the allowed time complexity."
412
+
# )
413
+
414
+
# # Space complexity section
415
+
# space_feedback = None
416
+
# if space_result:
417
+
# space_feedback = SpaceComplexityResult(
418
+
# required=space_result.expected_answer,
419
+
# detected=space_result.detected_complexity,
420
+
# is_correct=space_result.is_correct,
421
+
# message="✓ Your algorithm meets the space complexity requirement."
422
+
# if space_result.is_correct
423
+
# else "✗ Your algorithm exceeds the allowed space complexity."
0 commit comments