Answer the question
In order to leave comments, you need to log in
Calculating rows and columns that monotonically fall off?
The task is given:
The matrix of the size m * n is given. Print the number of 1) lines; 2) columns, the elements of which grow monotonously (come).
I ask you to help not with solving the problem, but with understanding what exactly they want from me. In what sense monotonously grow\fall down. Let's say, I just can't understand in principle what the essence of the task is and what they want from me. We need an outreach team :)
Answer the question
In order to leave comments, you need to log in
I think it's about this: https://ru.wikipedia.org/wiki/Monotone_function
Simply put, if the rule works for each cell of a row/column cell[i] >= cell[i - 1]
, then the row/column fits the conditions of the problem and they need to be counted
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question