Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • 18
    \$\begingroup\$ Not counting whitespace in code golf is a bad idea, it leads to submissions with massive strings of whitespace plus generic code to convert the string to code and execute it. \$\endgroup\$
    – xnor
    Commented Apr 14, 2019 at 22:47
  • 3
    \$\begingroup\$ So if someone can just make a whitespace solution... \$\endgroup\$
    – att
    Commented Apr 15, 2019 at 0:08
  • 4
    \$\begingroup\$ an exact midpoint should be rounded to the closest even integer: just wondering what's the reasoning behind that? \$\endgroup\$
    – Arnauld
    Commented Apr 15, 2019 at 8:47
  • 4
    \$\begingroup\$ @nwellnhof True. But enforcing this rule is just an annoyance for languages that don't do it that way (and I think Python 2 doesn't round-to-even either). I don't think we should round at all anyway. The triangle [[0, 0], [1, 1], [0, 1]] really should yield \$1/2\$ rather than \$0\$. \$\endgroup\$
    – Arnauld
    Commented Apr 15, 2019 at 11:49
  • 6
    \$\begingroup\$ Usually challenges are self-contained, but this one isn't. Could you explain what a convex hull is, and how to compute it? Or point to some reference online resource? \$\endgroup\$ Commented Apr 15, 2019 at 12:04