You are viewing a single comment's thread. Return to all comments →
thanks mate, just cleared some chaff from your code
inline int squaresCount(int a, int b) {
return a == b ? ((sqrt(a) - floor(sqrt(a))) > 0.0 ? 0 : 1) : (floor(sqrt(b)) - floor(sqrt(a)));
}
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 →
thanks mate, just cleared some chaff from your code
inline int squaresCount(int a, int b) {
}