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

Java > AP-1 > scoresIncreasing
prev  |  next  |  chance

Given an array of scores, return true if each score is equal or greater than the one before. The array will be length 2 or more.

scoresIncreasing({1, 3, 4}) → true
scoresIncreasing({1, 3, 2}) → false
scoresIncreasing({1, 1, 4}) → true

...Save, Compile, Run

See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  CodingBat  >  AP-1

Forget It! -- delete my code for this problem 203.0

Copyright Nick Parlante 2006-10 - privacy