You are viewing a single comment's thread. Return to all comments →
Javascript simple solution: function squares(a, b) { const lower = Math.ceil(Math.sqrt(a)) const upper = Math.floor(Math.sqrt(b)) return upper-lower+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 →
Javascript simple solution: function squares(a, b) { const lower = Math.ceil(Math.sqrt(a)) const upper = Math.floor(Math.sqrt(b)) return upper-lower+1
}