Skip to content

Add missing type hints in matrix directory #6409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
Update searching_in_sorted_matrix.py
  • Loading branch information
rohanr18 authored Sep 30, 2022
commit 5427cd5468a4e1c659053a888c3042ad64cfed42
4 changes: 2 additions & 2 deletions matrix/searching_in_sorted_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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(
Expand Down Expand Up @@ -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)
Expand Down