Skip to main content

Questions tagged [output]

13 votes
1 answer
215 views

There's consensus that answering with fractions is allowable for decimals that can be expressed as fractions. But what about irrational numbers? Can they be expressed as a rational representation of ...
lyxal's user avatar
  • 35.6k
1 vote
1 answer
183 views

There exist some questions that it's easier to output an array longer than intended to output, and it costs to slice. Longer array behave like small ones as long as you don't access its length or out-...
l4m2's user avatar
  • 32.5k
11 votes
0 answers
303 views

I'm golfing in Lua, which does support such thing as multiple return values like this: ...
val - disappointed in SE's user avatar
3 votes
1 answer
75 views

In certain languages (i.e. C), writes to streams like stdout can be buffered by default - what this means is that when one calls functions like ...
user avatar
5 votes
3 answers
345 views

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 ...
trichoplax is on Codidact now's user avatar
9 votes
1 answer
197 views

According to this consensus in the default allowed inputs thread, functions may output by writing to an out argument. When outputting an array in languages like C/C++, where arrays are pointers to ...
user avatar
2 votes
1 answer
210 views

So with the recent maze challenge I had the idea to implement a solution using CBMC (home / source), which is a tool that statically verifies C code and can produce counter-examples for property ...
SEJPM's user avatar
  • 3,463
7 votes
2 answers
234 views

Let's consider a QBasic solution to FizzBuzz. The code works correctly, printing the required output from 1 all the way up. The problem is, since there's a lot of ...
DLosc's user avatar
  • 40.7k
5 votes
3 answers
191 views

I couldn't find any consensus on this on meta for a while, and this seems to be particularly helpful when answering decision-problem challenges. Should swapping truthy and falsy be allowed by default, ...
Mr. Xcoder's user avatar
  • 42.9k
-1 votes
2 answers
195 views

A few challenges that requires the program to output something at a specified length, and a bunch of answers well... uses built-in error messages that's generated by the interpreter rather than the ...
iBug's user avatar
  • 2,731
13 votes
2 answers
358 views

A reversible language is a programming language where no operation is capable of destroying information. That means that with the output and a program you can always determine the input provided. ...
Wheat Wizard's user avatar
  • 103k
4 votes
1 answer
159 views

Should code-golf submissions written in JS that return a promise be allowed? For example: Promise.resolve("hi") Doesn't output ...
user avatar
6 votes
3 answers
344 views

I am currently designing a language that cannot halt unless it all of its memory is cleared, this means for any practical application it has no output whatsoever. However when the program does halt ...
Wheat Wizard's user avatar
  • 103k
1 vote
1 answer
75 views

Asking for a friend... For "Hello, World!", you can save an extra 1 byte by using copy("Hello, World"). However, I am confused on if it's allowed for your ...
bb216b3acfd8f72cbc8f899d4d6963's user avatar
1 vote
0 answers
55 views

If a program outputs some string. And then deletes part of the string with the backspace character (in java "\b"). And procedes to print the rest to spec. Would this be considered a violation?
Rohan Jhunjhunwala's user avatar

15 30 50 per page