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

 

srp4379@lausd.net mountain > isDecreasing
prev  |  next  |  chance

Mountain, Part II: Given an array of ints (nums) and an int value (start) isDecreasing(int[] array, int start) ---- Returns true IF for each j such that start <= j < nums.length-1, THEN nums[j] > nums[j+1];


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

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

public boolean isDecreasing(int[] nums, int start) { }

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

Copyright Nick Parlante 2017 - privacy