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
|
1568 Discussions
|
Please Login in order to post a comment
JS
c++
int squares(int a, int b) { int result = 0;
}
c++
int squares(int a, int b) { int result = 0;
}
Here are my c++ solutions, you can watch the explanation here : https://youtu.be/LtU0ItsvbMI
Solution 1 O(√n)
Solution 2 O(1)
function squares(a: number, b: number): number { // Write your code here let squaresCount: number = 0
}