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.

Required fields*

5
  • \$\begingroup\$ Just checking, we can use the boolean values False/True as long as they are consistent? \$\endgroup\$ Commented Dec 5, 2019 at 9:43
  • 1
    \$\begingroup\$ "Swapping truthy/falsy is not allowed" and "One consistent value for true, another consistent value for false" contradict each other (if I would state I use false as consistent value for true and vice-versa given the second output-option). \$\endgroup\$ Commented Dec 5, 2019 at 11:49
  • \$\begingroup\$ @NickKennedy I just removed the restriction. \$\endgroup\$ Commented Dec 5, 2019 at 13:53
  • \$\begingroup\$ Brute force approaches would likely timeout on the larger test cases... is that ok? \$\endgroup\$ Commented Dec 5, 2019 at 17:53
  • 1
    \$\begingroup\$ @Jonah It's absolutely fine, as always. \$\endgroup\$ Commented Dec 5, 2019 at 22:20