Hot answers tagged

23 votes

Default for Code Golf: Input/Output methods

Full programs may take array/string input (of unknown length) via stdin in the form of <length> <contents> or ...
user avatar
  • 64.6k
15 votes

Loopholes that are forbidden by default

Sidestepping in a theorem-proving challenge A theorem-proving challenge is about proving a statement (= constructing a value of the given type) given in a specific host language (designed for theorem ...
8 votes

Default for Code Golf: Input/Output methods

Spreadsheet languages can take input from a specific cell / group of cells Most Excel / Google Sheets answers seem to do this anyway, I don't know why it wasn't here. For example, this answer takes ...
user avatar
  • 31.5k
8 votes

Default for Code Golf: Input/Output methods

You may assume that the input is valid When parsing an input, you may assume that the input is already valid. You are not required to validate it unless the challenge is specifically about testing ...
user avatar
  • 2,039
8 votes

Things to avoid when writing challenges

Think twice if you're writing a challenge around an algorithm you found on the Internet Simply put, it will never work as you expect, (though it could work as "a challenge") unless you pick ...
user avatar
  • 64.6k
7 votes

What is our consensus on languages which do not halt by design?

Non-halting languages are allowed if their output is provably finite when required to be. If a challenge requires infinite output, non-halting languages are of course allowed. In challenges where ...
user avatar
5 votes

Default for Code Golf: Input/Output methods

Spreadsheet languages may output through cell values Most Excel / Google Sheets answers seem to do this anyway, I don't know why it wasn't here. For example, this answer outputs a created piece of ...
user avatar
  • 31.5k
5 votes

Policy on answering challenges with cumbersome I/O

This I/O format is fair for many languages – it should be corrected because it isn't fair for all languages, but is normally being used in good faith and we can easily modify answers in languages ...
2 votes

Let's allow newer languages/versions for older challenges

Yes - I think that new language should be allowed to win. The initial intention of language itself is to provide smooth way to express, simplify, shorten, improve how code or communication looks like. ...
user avatar
2 votes

Default for Code Golf: Input/Output methods

When printing to STDOUT, you may have any number of trailing whitespace
user avatar
  • 3,337
1 vote

Minecraft Commands I/O Methods

My stance on Minecraft is the same as my stance on Baba is You. I absolutely encourage people to use Minecraft and other non-programming languages, for code-golf challenges, however I don't think ...
user avatar
  • 89.4k

Only top scored, non community-wiki answers of a minimum length are eligible