Posts by Quintec
Given an positive integer $n$, return the least positive integer $k$ such that the $k$th partial sum of the harmonic series is greater than or equal to $n$. For example, if $n = 2$, then $k = 4$, b...
Japt, 10 11 13 15 solutions 256 Works as you would expect. 8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8 Subtracting negative numbers. 4**4...
Functions may take input via arguments and output via return value Functions may also use STDIN/STDOUT as they wish.
What sort of loopholes are assumed to be disallowed in any challenge on this site? One loophole per answer, please. Vote up answers if you want them disallowed, and down otherwise.
Should sandbox posts give rep? On one hand, keeping this feature motivates more people to use the sandbox. On the other hand, allowing people to gain rep twice for the same content seems wrong in s...
Functions may use arguments or lists of arguments interchangeably For example, if a challenge requires defining f(x, y, z), f(a) is also acceptable where a[0] = x, a[1] = y, a[2] = z.
You may output delimiter-separated values instead of a list For example, the output [1,2,3] could be represented as 1 2 3 or 1|2|3.
Goldbach's Conjecture states that every even whole number greater than 2 is the sum of 2 prime numbers. Your task is to return those 2 prime numbers, given an even whole number as input. There are ...
What input/output methods do you think should be allowed/disallowed while code golfing on this site? What guidelines for input/output methods do you think should be in place? One method per answer...
This sounds like a great idea to me. To summarize how we can move forward on this: For the Codidact Team Create a new meta tag (defaults? name pending) that is one of the options for the requir...
Make a new post If they are completely different solutions, I would say they should be judged separately.
In Google Docs, the word count tool looks like this: Pages would not make sense, but your goal is to implement every other count. Definitions Words are strings of text separated by any amount ...
Yes, including the fact that it's in C. Using a heading such as "C + BMPL" that links to the library and explains what it does should be fine. I also think that having a way to run it (preferably ...
Cat Quines Quines that simply output the source code due to some sort of implicit I/O, such as 1 in many languages.
Given an integer n, output the smallest prime such that the difference between it and the next prime is at least n. For example, if n=5, you would output 23, since the next prime is 29, and 29-23&...
Japt, 625 615 bytes `'T°s ߦg, d e sÒy v Did gy d g½e e °¼; A¥ Úßy ØÀ e Þgov, A e Ú ÎÈs tg¼. ` +i` "BeØ e {=`Jab¼rwock`}, my s! T jaws È ßÒ, e claws È ¯t®! BeØ e...
Update: the meta tag is live, so we can start the posts. I have created a few here with a few sample answers, but the rest is up to the community! Make sure to vote on other answers as well as post...
It's the opposite of code golf. Code bowling is essentially a challenge where you try to write the longest code possible, as opposed to the shortest code. Now, this format comes with many issues, ...
You may modify the input in-place If a function takes an input a, it is acceptable that a contains the intended output after executing instead of other forms of output. Note that this means a must...
Reactions were just released! See the main meta post here for the details. Currently, the default reactions look like this: Now, I would argue that none of these fit for Code Golf - so what rea...
Japt -R, 27 22 bytes 27òÈn28 ÇmX27-X-ZøÃÔû Test it Lots of credit goes to xnor for finding the min(i,j,27-i-j) trick. -5 bytes thanks to @Shaggy
Japt, 1 byte u Japt, more like JABT (just another builtin) :P Try it
Japt, 1 byte w Uh... yeah. Probably similar solutions for many other golf langs. Try it
It's for non-challenge questions. These might be general tips questions, questions about how to golf specific pieces of code, common golf paradigms, etc. Here are some examples from SE that might ...
Regarding because the vast majority of all programs that were posted & highly up-voted there won't even compile on the most basic, compliant compiler for that language. Code Golf allows f...