Skip to content

Commit 8db6205

Browse files
committed
feat: Strassen's matrix multiplication algorithm added
1 parent c291794 commit 8db6205

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

matrix/strassen_matrix_multiply.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ def naive_multiplication(matrix_a: matrix, matrix_b: matrix) -> matrix:
5757
return result
5858

5959

60-
def next_power_of_two(n: int) -> int:
60+
def next_power_of_two(number: int) -> int:
6161
"""
62-
Return the next power of two greater than or equal to n.
62+
Return the next power of two greater than or equal to number.
6363
6464
>>> next_power_of_two(5)
6565
8
6666
"""
6767
power = 1
68-
while power < n:
68+
while power < number:
6969
power <<= 1
7070
return power
7171

0 commit comments

Comments
 (0)