You are given matrix, a list of lists of numbers (the rows may have different lengths).
Return True if every row of matrix is an arithmetic progression (the difference between consecutive elements within a row is constant), and False otherwise.
A row with fewer than 3 elements is automatically considered an arithmetic progression. An empty matrix (no rows) should return True.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[[1, 3, 5], [2, 4, 6]]
Returns
True