You are viewing a single comment's thread. Return to all comments →
java solution,
double aRoot = Math.ceil(Math.sqrt(a)); double bRoot = Math.floor(Math.sqrt(b)); return Double.valueOf(bRoot - aRoot + 1).intValue();
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
java solution,