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

 

srp4379@lausd.net ap1 > isIncreasing
prev  |  next  |  chance

Mountain, Part I: Given an array of ints (nums) and an int value (stop) isIncreasing(int[] array, int stop) ---- Returns true IF for each j such that 0 <= j < stop, THEN nums[j] < nums[j+1];


isIncreasing([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 8) → true
isIncreasing([1, 2, 3, 4, 5, 6, 7, 8, 7, 10, 11], 8) → false
isIncreasing([99, 77, 33, 22], 3) → false

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

public boolean isIncreasing(int[] nums, int stop) { }

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