• + 0 comments

    In that solution, when you create this range range(lcm_a, hcf_b+1) you are assuming hfc_b > lcm_a but that is not always the case.

    For example in this test casegetTotalX( [3, 4] , [24, 28] ) lcm_a = 12 and hfc_b = 4 so range(12,5) is empty and you return 0 which is not the correct answer.