mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Fix ruff (#11527)
* updating DIRECTORY.md
* Fix ruff
* Fix
* Fix
* Fix
* Revert "Fix"
This reverts commit 5bc3bf3422.
* 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