You are viewing a single comment's thread. Return to all comments →
I feel like I'm cheating with this one. I just rounded down (N/2)^2. It passed all the tests, but I can't get over the feeling that this should not have cut it.
Here's the JS: