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

 

jebbert@volusia.k12.fl.us > retestQuiz05272014Increasing
prev  |  next  |  chance

Write a method that returns true if the input parameter array is in increasing order. It does not have to be strictly increasing, so {5,7,7,8} is considered an increasing array for this method. Note that the integer array can include ANY integers, including negatives and zero. So {-7,-3,0,5} is an increasing array. Look at the test data for further examples.


retestQuiz05272014Increasing([5, 4, 2, 6, 12, 3, 7, 9]) → false
retestQuiz05272014Increasing([5, 7, 9, 14, 22, 50, 51, 80]) → true
retestQuiz05272014Increasing([17, 17, 17, 17]) → true

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

public boolean retestQuiz05272014Increasing(int[] nums) { }

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: 220

Copyright Nick Parlante 2017 - privacy