MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

matrix/searching_in_sorted_matrix.py:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def main() -> None:
32 mat = [[2, 5, 7], [4, 8, 13], [9, 11, 15], [12, 17, 20]]
33 x = int(input("Enter the element to be searched:"))
34 print(mat)
35 search_in_a_sorted_matrix(mat, len(mat), len(mat[0]), x)
36
37
38if __name__ == "__main__":

Callers 1

Calls 1

Tested by

no test coverage detected