Problem 128. Sorted highest to lowest?

Created by AMITAVA BISWAS in Community

Return 1 if the input is sorted from highest to lowest, 0 if not.


 1:7     -> 0
 [7 5 2] -> 1

Solution Stats

47.64% Correct | 52.36% Incorrect
Last solution submitted on Mar 26, 2019

Problem Comments

Solution Comments

Recent Solvers1124

Suggested Problems

More from this Author100

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!