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

 

pais@kinetigram.com logic05 > L510_evenlySpaced
prev  |  next  |  chance

APCS Logic 5, Problem 10. Given three ints, a b c, one of them is small, one is medium and one is large. Return true if the three values are evenly spaced, so the difference between small and medium is the same as the difference between medium and large.


L510_evenlySpaced(2, 4, 6) → true
L510_evenlySpaced(4, 6, 2) → true
L510_evenlySpaced(4, 6, 3) → false

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

public boolean L510_evenlySpaced(int a, int b, int c) { }

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

Copyright Nick Parlante 2017 - privacy