mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Correct ruff failures (#8732)
* fix: Correct ruff problems
* updating DIRECTORY.md
* fix: Fix pre-commit errors
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
793e564e1d
commit
1faf10b5c2
@@ -122,7 +122,7 @@ def strassen(matrix1: list, matrix2: list) -> list:
|
||||
if dimension1[0] == dimension1[1] and dimension2[0] == dimension2[1]:
|
||||
return [matrix1, matrix2]
|
||||
|
||||
maximum = max(max(dimension1), max(dimension2))
|
||||
maximum = max(dimension1, dimension2)
|
||||
maxim = int(math.pow(2, math.ceil(math.log2(maximum))))
|
||||
new_matrix1 = matrix1
|
||||
new_matrix2 = matrix2
|
||||
Reference in New Issue
Block a user