Back to course home
0% completed
Vote For New Content
The provided solution will return wrong result if num = 10.
anhquan.tranle0601
Sep 26, 2023
If num = 10, in the loop body the condition slow == fast will be true and the function return False, which is incorrect.
We should have a condition to check if fast == 1 before checking slow == fast
0
0
Comments
Comments
On this page