no need to check further if a match has been found

This commit is contained in:
Stefan Harmuth 2020-12-04 08:52:33 +01:00
parent a70f2daf7f
commit 5389f899d5

View File

@ -12,6 +12,8 @@ def getProductOf2020Sum(input_lines, combinations):
for value in list(check_tuple):
return_value *= value
break
return return_value