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.
Yes, I got about 50% drop in time from a better hash function. But before I went that way, tighter memory use gave me a 10% increase in speed. Still wasn't enough to get #10 though. Had to be very careful with memory and get the perfect (not near, but perfect) hash function here. The data range here actually allows for a PERFECT hash function.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #98: Anagramic squares
You are viewing a single comment's thread. Return to all comments →
Yes, I got about 50% drop in time from a better hash function. But before I went that way, tighter memory use gave me a 10% increase in speed. Still wasn't enough to get #10 though. Had to be very careful with memory and get the perfect (not near, but perfect) hash function here. The data range here actually allows for a PERFECT hash function.