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

 

andersoniii.edwin@cusd80.com > findPerfectOddCubes
prev  |  next  |  chance

How many perfect odd cubes are there for a given number... Write the method findPerfectOddCubes to count the number of perfect odd cubes between one and a given number (inclusive) if 30 is given --> 1, 27 are the odd cubes between 1 and 30 so the conclusion would be 2.


findPerfectOddCubes(10) → 1
findPerfectOddCubes(125) → 3
findPerfectOddCubes(130) → 3

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

public int findPerfectOddCubes(int value){ }

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

Copyright Nick Parlante 2017 - privacy