mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Add missing type hints in matrix
directory (#6612)
* Update count_islands_in_matrix.py * Update matrix_class.py * Update matrix_operation.py * Update nth_fibonacci_using_matrix_exponentiation.py * Update searching_in_sorted_matrix.py * Update count_islands_in_matrix.py * Update matrix_class.py * Update matrix_operation.py * Update rotate_matrix.py * Update sherman_morrison.py * Update spiral_print.py * Update count_islands_in_matrix.py * formatting * formatting * Update matrix_class.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
a84fb58271
commit
46842e8c5b
@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
|
||||
def search_in_a_sorted_matrix(
|
||||
mat: list[list], m: int, n: int, key: int | float
|
||||
mat: list[list[int]], m: int, n: int, key: int | float
|
||||
) -> None:
|
||||
"""
|
||||
>>> search_in_a_sorted_matrix(
|
||||
@ -30,7 +30,7 @@ def search_in_a_sorted_matrix(
|
||||
print(f"Key {key} not found")
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
mat = [[2, 5, 7], [4, 8, 13], [9, 11, 15], [12, 17, 20]]
|
||||
x = int(input("Enter the element to be searched:"))
|
||||
print(mat)
|
||||
|
Reference in New Issue
Block a user