An array is called monotonic if the index of each element increases from the first to the last or decreases from the first to the last.
Already have an account? Log in