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.
Given the sum of squares formula, the number of days to spend x candies is roughly the cube root of 3x. So I back off a few days from that estimate to be conservative and then iterate through until I find the right value.
Little Ashish's Huge Donation
You are viewing a single comment's thread. Return to all comments →
Given the sum of squares formula, the number of days to spend x candies is roughly the cube root of 3x. So I back off a few days from that estimate to be conservative and then iterate through until I find the right value.