You are viewing a single comment's thread. Return to all comments →
1 line solution in Java:
static int squares(int a, int b) { return ((int) Math.floor(Math.sqrt(b)) - (int) Math.ceil(Math.sqrt(a)) + 1); }
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 →
1 line solution in Java: