mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 11:37:36 +08:00
Fix ruff (#11527)
* updating DIRECTORY.md * Fix ruff * Fix * Fix * Fix * Revert "Fix" This reverts commit 5bc3bf342208dd707da02dea7173c059317b6bc6. * find_max.py: noqa: PLR1730 --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -75,8 +75,7 @@ def solution(n: str = N) -> int:
|
||||
product = 1
|
||||
for j in range(13):
|
||||
product *= int(n[i + j])
|
||||
if product > largest_product:
|
||||
largest_product = product
|
||||
largest_product = max(largest_product, product)
|
||||
return largest_product
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user