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

 

checkStartEnd


Given a number n, return true if n is in the range of star..end, inclusive. If check is false, return true if the number is less than star, or greater end.


checkStartEnd(2, 1, 10, true) → true
checkStartEnd(0, 1, 10, true) → false
checkStartEnd(10, 9, 10, true) → true

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

public boolean checkStartEnd(int n, int start, int end, boolean check) { }

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

Copyright Nick Parlante 2017 - privacy