https://cses.fi/problemset/task/1073
link to the question
Please help me with this question
please solve my doubt
Try this:
can you please explain me the concept behind this question
We need to make minimum towers. First we create a vector and store first value in it. Till now, we have made one tower. After that for each value if this value is greater than all values in vector then we have to create a new tower else we will put this on another whose value is just greater than this value.