• + 2 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:

    Math.floor(
        Math.pow(
            (lines[i]/2), 2
        )
    )