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...
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.
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...
20 answers
·
posted 4y ago
by Quintec
· last activity
30d ago
by trichoplax
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...
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 ...
10 answers
·
posted 5y ago
by Quintec
· last activity
3y ago
by torres
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...
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.
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 ...
9 answers
·
posted 4y ago
by Quintec
· last activity
3y ago
by torres
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 ...
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, ...