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.
This was a good problem to solve - worked out my brain quite a bit :)
In the end though, like everyone pointed out, the final algorithm is quite simple if you understand what all the multiplication operations are doing. :-)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Queries
You are viewing a single comment's thread. Return to all comments →
This was a good problem to solve - worked out my brain quite a bit :)
In the end though, like everyone pointed out, the final algorithm is quite simple if you understand what all the multiplication operations are doing. :-)