id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

isDecreasing


Check if the list is in decreasing order. Every item in the list must be greater than the next item. Precondition: list has at least two items


isDecreasing([5, 4, 3, 2, 1]) → true
isDecreasing([10, 7, 3, 0, -5]) → true
isDecreasing([5, 4, 3, 2, 1, 1]) → false

...Save, Compile, Run (ctrl-enter)

public boolean isDecreasing(int[] list) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy