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
|
1579 Discussions
|
Please Login in order to post a comment
Easiest Javascript solution without any loop:
Here is problem solution in Python, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-sherlock-and-squares-problem-solution.html
SOLUTION IN RUST:
Here are my c++ solutions, you can watch the explanation here : https://youtu.be/LtU0ItsvbMI
Solution 1 O(√n)
Solution 2 O(1)