We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sherlock and Squares
Sherlock and Squares
Sort by
recency
|
1565 Discussions
|
Please Login in order to post a comment
function squares(a: number, b: number): number { // Write your code here let squaresCount: number = 0
}
Here is the my Kotlin solution :
fun squares(a: Int, b: Int): Int {
}
`
Here are my c++ solutions, you can watch the explanation here : https://youtu.be/LtU0ItsvbMI
Solution 1 O(√n)
Solution 2 O(1)