educative.io

Line 13 of the solution

if target_diff == 0 then why return an arithmetic operation target_sum - target_diff, that is redundant given that you are removing 0…

it should be return target_sum

3 Likes

Since they are both the same, it doesn’t really matter.