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 Moving Tiles
Sherlock and Moving Tiles
Sort by
recency
|
296 Discussions
|
Please Login in order to post a comment
Haha C# has a similar issue. The areas may be up to length^2, but that means they need to be
long
. So, you'll need to modify the supplied ingestion code.Fix your dogshit scala example by changing the queries input into a Double
Note for people trying in C: the parse_int function overflows for some test cases. Change the function to return a long, and change the queries array to accept longs.
If you are having a runtime error in java, this might be the solution: https://www.hackerrank.com/challenges/sherlock-and-moving-tiles/forum/comments/485993