Skip to content

Commit d90f331

Browse files
committed
fix divide_and_conquer-folder
1 parent 9547066 commit d90f331

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

divide_and_conquer/max_difference_pair.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import List
1+
from typing import List, Tuple
22

33

4-
def max_difference(a: List[int]) -> (int, int):
4+
def max_difference(a: List[int]) -> Tuple[int, int]:
55
"""
66
We are given an array A[1..n] of integers, n >= 1. We want to
77
find a pair of indices (i, j) such that

divide_and_conquer/strassen_matrix_multiplication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def strassen(matrix1: list, matrix2: list) -> list:
121121
dimension2 = matrix_dimensions(matrix2)
122122

123123
if dimension1[0] == dimension1[1] and dimension2[0] == dimension2[1]:
124-
return matrix1, matrix2
124+
return [matrix1, matrix2]
125125

126126
maximum = max(max(dimension1), max(dimension2))
127127
maxim = int(math.pow(2, math.ceil(math.log2(maximum))))

0 commit comments

Comments
 (0)