You are viewing a single comment's thread. Return to all comments →
Here is the my Kotlin solution :
fun squares(a: Int, b: Int): Int {
val lowerLimit = ceil(sqrt(a.toDouble())).toInt() val upperLimit = floor(sqrt(b.toDouble())).toInt() return upperLimit-lowerLimit + 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 →
Here is the my Kotlin solution :
fun squares(a: Int, b: Int): Int {
}