Suppose you have a task to find the maximum number in a matrix (a table of numbers). You have a table of size (rows) by (columns), and you store numbers in it. You take the first number as the maximum one. Then you traverse all other numbers, and when a larger value is found, it becomes the new maximum.
What is the time complexity of such an algorithm?