Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [answers]

For questions regarding answers posted to challenges

0
votes
0answers
73 views

Scratch 2.0 is no longer considered a “free” language. Does this retroactively make cops-and-robbers cop answers in Scratch 2.0 non-competitive?

As per this question's answers, Scratch 2.0 is no longer considered a "free" language. As per this question's accepted answer, non-free languages are allowed if marked as non-competing. Scratch 2.0 ...
6
votes
3answers
184 views

Is a regex answer valid if it gives the reciprocal of the required output? [duplicate]

This answer gives the reciprocal of the required output, rather than the required output itself. In a simpler challenge this might cut out a significant part of the work, but for this particular ...
2
votes
1answer
96 views

Existance of known score but unknown exact code

Consider the following the challenge: Write a program that accomplishes X task while maximizing the number of distinct characters in your source code. Removing any set of characters from the ...
4
votes
1answer
252 views

Does linter golf require a specific interpreter to be a valid answer for golf?

If someone answers a code-golf challenge in, for example, JavaScript, and as an additional challenge restricts to only code that is approved by http://www.jslint.com/ that answer is valid if an ...
5
votes
1answer
58 views

Sorting answers

Some popular challenges have many many answers and often a language is used more than once, so : Is there a way to sort answers so that they appear in the order according to the name of a language OR ...
7
votes
3answers
289 views

What should we do when a language cannot answer a given challenge?

Many challenges, mainly restricted-source, are impossible in some languages. Find an Illegal String is a good example—many languages without syntax errors, such as brainfuck (deleted answer), ...
22
votes
2answers
335 views

Is it permitted for a submission to terminate merely with probability 1?

The question is in the title. I'm interested in submissions that terminate with probability 1 but have unbounded worst case running times. This is related to the question Do programs have to ...
8
votes
1answer
197 views

Post other people's code?

Some people are very good code golfers but for their own reasons do not want to join PPCG. Is it acceptable to post their solutions as answers to challenges? If at all acceptable, I would personally ...
4
votes
1answer
129 views

What's the complexity of my answer?

I've never studied any computer science. So I've always passed over restricted-complexity questions, since I had no way of knowing the complexity of my code. Today, I decided to try and see whether I ...
5
votes
1answer
171 views

Invalid answers in the review queue, but OP hasn't had time to fix it

It happens quite frequently that short answers (Title + Code) appear in the Low Quality review queue, due to the automatic flagging mechanisms. In most cases, the answer "Looks OK". However, there ...
-2
votes
1answer
131 views

User disobeying rules?

So last question that I posted. i.e : this, I wanted to ask because a specific new user whom I have warned almost on all answer he has posted (5-6) was not following, yet he keeps answering with ...
15
votes
3answers
311 views

What to do when almost all answers are wrong?

In a recent challenge, almost all answers use an algorithm that yields the wrong results due to floating point errors. The challenge is/was not unclear, but there was no test case that led to the ...
8
votes
3answers
232 views

Is it legal to submit a function that must exist as a method on an object?

For a challenge, I recently submitted the JavaScript solution [].push To be clear, this isn't x=>[].push. The entry itself ...
25
votes
4answers
497 views

Is a proof of impossibility allowed as an answer?

I was thinking of a proof of impossibility for a long-running unanswered question on this site. By a proof of impossibility, what I mean is a proof that no possible answer can solve the challenge. ...
2
votes
0answers
47 views

Is boiler-plate code required for challenges? [duplicate]

When solving a puzzle with an appropriate solution, does the programming language standard boiler-plate source code need to be included: For example, should I include all of this: ...
15
votes
1answer
257 views

What are the standard requirements for answering a [random] challenge?

There are lots of of challenges involving randomness. However, not all languages have a built-in method for randomness. Some languages, like python or most golfing languages make it really easy. You ...
11
votes
5answers
292 views

Getting Started

I've been lurking for quite a while and have realized (after a technical interview) that I'm really out of practice solving problems like what is here. Is there a language that you recommend I start ...
22
votes
10answers
529 views

Are baseline submissions serious contenders?

One of PPCG's oldest rules, mentioned in What topics can I ask about here?, is that all answers to challenge questions must: Be a serious contender for the winning criteria in use. For example, an ...
11
votes
1answer
312 views

Multiple answers in a single post

Is is acceptable to bunch together multiple answers in a CW post just because the challenge is trivial? See e.g. https://codegolf.stackexchange.com/a/151280/43319.
3
votes
1answer
78 views

Requiring non-builtin answers [duplicate]

Ever since PPCG was created, answers using builtins have been an issue for challenge writers. Sometimes, an interesting challenge can be posted, only for some languages (not necessarily golfing ...
9
votes
1answer
174 views

What should be done about pre-posted Community Wiki answers that serve as a place for combining trivial answers?

Recently there was a challenge and the OP immediately posted a community wiki answer which would serve the purpose of combining trivial answers. Citing the answer: This community answer is for ...
16
votes
1answer
1k views

Command-line flags on front ends

Our standard policy regarding command-line flags states that one should count the space before the dash (-) too, when there aren't any "free" options, since it ...
11
votes
1answer
244 views

Is a transliteration tool enough to grant count as SBCS?

Prompted by this. I'll speak about Dyalog APL here, but this could really apply to any language. Background Dyalog APL has its own SBCS called ⎕AV. For backwards ...
9
votes
5answers
382 views

Can interpreter flags causing major language differences be considered different versions of the language?

I recently (this morning) extended Cubically to have an internal cube of variable size. The cube size is passed via a third interpreter flag (3 for a 3x3x3, ...
12
votes
3answers
1k views

Is a quine that reads a function's source a cheating quine?

So, in the last couple months, I have seen several (especially JavaScript) quines told that they are cheating because they stringify a function. Accordingly, I thought that was the standard - it's ...
0
votes
0answers
26 views

Are modifications to existing languages allowed as submissions? [duplicate]

Say I have a language I'd love to use (like JavaScript for example), but there are tons of little pieces of functionality I'd love to modify built-ins with, like ...
26
votes
0answers
314 views

Stop converting duplicate answers to comments

In case you didn't know, whenever you post the exact same answer as was already posted, it gets converted to a comment. I had no idea before I posted a crack on a cops-and-robbers post that someone ...
32
votes
2answers
563 views

Non-Trivial Answers get too few upvotes

It was recently brought up in chat that people are rewarded for trivial answers sometimes, which makes sense because this site is all about short code, but in other aspects, is bad because some ...
-2
votes
1answer
146 views

What to do about BBC micro:bit?

BBC micro:bit is a piece of hardware wich allows to to run code, such as Python or Javascript, that is custom made for the micro:bit chip. However, it in itself is not a programming language. Instead,...
82
votes
4answers
2k views

Let's allow newer languages/versions for older challenges

I've been thinking for a long time that our non-competing policy for newer languages (or language versions) is harmful. Just for context, we currently require all answers which require implementations ...
7
votes
1answer
264 views

Should you answer a competitive question if your answer is not competing / is not competitive?

I'm curious, because some answers seem to be posted regardless of the winning answer. Should non-competitive answers be posted when better answers exist for entries of the same language?
-1
votes
1answer
177 views

The secret of upvotes

Okay, I admit the title is a bit cryptic but I couldn't come up with something better. As some of you may have noticed I have started spending a lot more time on code golf answering questions/...
8
votes
2answers
181 views

Is there a new consensus on answer headers?

When answering question before I always used to use the "Heading" option present on the formatting box. This produces the following markdown: ## Heading ## ...
4
votes
1answer
247 views

Do we accept submissions in unimplementable languages?

I recently posted a code-golf answer in Scheme-1. However, the Scheme-1 language cannot be implemented (as it would require the implementation to solve the halting problem). I marked it as non-...
7
votes
4answers
280 views

Metadata for answers?

It would be great to have an option in answers to add metadata. (This would be most useful for questions tagged code-golf, but maybe also other tags?) You would be able to put in the language, the ...
2
votes
1answer
148 views

Why do we score codegolf submissions in “bytes” instead of “chars”?

A single 05AB1E char takes all 8-bits of a byte, whereas BF only has 8 commands, so 3 bits per char, 2.5 BF commands per byte. I'm not suggesting we change the judging rules, but why do we use the ...
0
votes
0answers
63 views

Make it easier to post answers on Sandbox from Mobile App?

Maybe I'm missing something, but is there an easy-ish way to initiate the process of writing an answer in the Sandbox from the mobile app? I noticed the phrase "bottom of the page" in the sandbox ...
2
votes
1answer
84 views

Is Ctrl-C one keystroke or two?

Preliminary question: is it valid to score Excel in keystrokes? I guess it is, but I'm not sure what our policy is. Assuming it is (or, in general, for languages that are scored in keystrokes), does ...
0
votes
1answer
230 views

“Windows” as a programming language?

I was going to give the green tick mark to the winning submission of this challenge, but I am unsure what to do. The shortest submission is this, which claims to use "Windows language", but I doubt ...
1
vote
1answer
100 views

Should stdout be ignored when the program is a function?

My understanding is that, when stdout is used for output, stderr is ignored. Similarly, it would seem that, when a function's return value is used for output, stdout and stderr should be ignored. ...
18
votes
1answer
470 views

Allowing non-free languages in Cops and Robbers challenges when marked as non-competing

Non-free languages are not allowed to participate in Cops and Robbers challenges. And that's a good thing. If you choose an obscure non-free language, no one will be able even to attempt solving it ...
2
votes
1answer
120 views

How might I reward a Robber for an especially good crack?

To keep a concise title I have left out a few details, but here is the dilemma: I have a cops post that has not yet been cracked. I would like to reward the first person to figure out my solution ...
2
votes
2answers
163 views

How should the length of a Commodore 64 BASIC program be measured?

Commodore 64 BASIC has abbreviated forms for most of its keywords, ranging from ? being short for PRINT (common across many ...
1
vote
1answer
111 views

Is it OK to delete old answers?

Since this is not a QA site as such, I don't think there's a whole lot of value in keeping old solutions around for future reference. And for new users to the site, it's a bit like discovering an ...
24
votes
0answers
60 views

Can the “How to Answer” pop-up disregard the association bonus?

We now have a custom “How to Answer” pop-up (yay!). However, this pop-up isn't shown to users who come here with the association bonus from other SE sites. In general, this behaviour makes sense: the ...
5
votes
0answers
101 views

Dealing with a highly-popular invalid answer [duplicate]

This answer to the Output your programming language name challenge is invalid: it doesn't actually produce output, and arguably isn't even a program (at least, not in the language it claims to be ...
11
votes
4answers
1k views

Should we combine answers where the same code works in many different languages?

Take this recent challenge for example. There are many languages where the shortest solution is simply *. Likewise, for other trivial challenges, the same 1-byte ...
4
votes
1answer
345 views

What if an interpreter update invalidates an existing answer?

I noticed earlier today that the Befunge interpreter on TIO no longer functioned in quite the same way as the old version (I guess this was caused by the nexus update). As a result, one of my old ...
17
votes
4answers
721 views

Can serious contenders do more than the challenge asks for?

As our help center likes to put it: All solutions to challenges should: Correctly implement the required specification. Be a serious contender for the winning criteria in use. For example,...
20
votes
2answers
846 views

What additional information should be allowed in a submission?

Unlike traditional coding competition sites, submissions (answers) on PPCG are free form; the only hard requirement is that all submissions must contain the scoring header and the code that solves the ...