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

 

james.shockey@austinisd.org > goingDown
prev  |  next  |  chance

/**
* goingDown
* Returns a boolean flag indicating if the numbers in an array
* are trending down. Where no value is larger than its predecessor
*
*
* @param arr - a 1D integer array
* @return a boolean value that is;
* true - if the array sequence is trending down
* false - if there is a value that is larger than its predecessor
*
*/


goingDown([1, 3, 4]) → false
goingDown([1, 3, 2]) → false
goingDown([4, 1, 1]) → true

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

public boolean goingDown(int[] arr) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy