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

 

isUp


Given an integer array, determine if elements in that array are "going up." An array that isUp will contain values that increase or stay the same next to each other.

[1,2,3,4,5]  and [1, 1, 5, 9] are going up.  
[1,2,3,0,8] is not going up.

isUp([1, 2, 3, 4, 5]) → true
isUp([1, 2, 3, 0, 8]) → false
isUp([1, 2, 3, 1, 8]) → false

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

public boolean isUp( 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

Difficulty: 205

Copyright Nick Parlante 2017 - privacy