Interpreting the challenge too literally
That is, if the challenge says "write a function that, given a number n, returns the n-th prime", posting something equivalent to:
function f($n) {
return "the $n-th prime";
}
I've been writing a compiler for a general purpose programming language that runs on the LLVM (and maybe other backends later down the line). It has functions and classes and methods and type inference and a whole load of other stuff, except the most important thing of all: a name. Anyone have any ideas? github.com/phase/lang-kotlin-antlr-compiler
This is a complicated one.
For a given number (this number can be plugged into the program, so long as it's changeable) list all 24 hour times (hours, minutes, seconds) that when added together, equal that given number.
Rules of addition
Numbers are added by their time seperating categories, n...
@HelkaHomba Just replied. I thought the idea was that you make a challenge where solutions are only allowed to use the characters in the string (it was your idea originally, so... :P).
@Downgoat With a single "post question" click, you could in theory get 925, 24, Third Time's A Charm, 011, Loungin' Around, Epiphany, and Just Here for the Hat, doing nothing else afterwards. (If the question was very well received)
Create a program that randomly re-maps the entire alphabetical keyboard to new letters
Rules
Each ALPHABETICAL CHARACTER should be replaced with another alphabetical character eg. a -> v
A character should not be remapped as itself
Input should be in the form of a keystroke eg. key A is presse...
Transfer case code-golf
Given two strings of letters, output a string with the letters of the first one and the capitalization of the second one
CodeGolf
pRnaFtRC
cOdeGoLF
Both strings will be equal-length and nonempty, and only contain letters a..z and A..Z.
You can take the input as a si...
@DLosc Not necessarily. The latter is awarded when the site collectively gets at least 20 unique hats. That could include one of the ones you just got.