Users with 3,500 rep (or 15,000 if when we get a site-design) can protect challenges. This makes it so that users who have not earned 10 rep on the site can not answer.
As a user with this privilege, I have no idea when it would be appropriate to use. This is because the idea of "protecting ques...
This message is open for anyone to adopt and post to main. For more details, see the chat room or meta post.
Seven-segment usage
I have an old digital clock and I am concerned the individual segments of the digits might run out of magical binary energy or whatever powers them. To know which...
No. if ((x) || (y = z)) {
in C-English is basically:
if x is nonzero, evaluate the following code.
if x is zero, set y to z.
if y is nonzero, evaluate the following code.
otherwise, break out of the loop.
If x is zero or y is zero, it breaks out of the loop.
This task is a classic programming task: Implement a regular expression parser. That is, write a program or function which takes a string describing a regular expression and a candidate string, and test whether the complete candidate string matches the regular expression. You may assume that the ...
Some questions require some amount of golfing because they have a maximum byte limit or are answer chaining and require no more than x bytes added to the previous answer.
However, code golf is not the winning criterion.
What should these questions be tagged?
code-golf
restricted-source
code-c...
Find the shortest regex that matches all non-radioactive elements and nothing else in the Periodic Table of Elements. This is the inverse of Regex for Finding Radioactive Elements
Radioactive Elements
'Technetium','Promethium','Polonium','Astatine','Radon','Francium','Radium','Actinium','Thoriu...
Find the shortest regex that matches all radioactive elements and nothing else in the Periodic Table of Elements.
Radioactive Elements
'Technetium','Promethium','Polonium','Astatine','Radon','Francium','Radium','Actinium','Thorium','Protactinium','Uranium','Neptunium','Plutonium','Americium','C...
#ifdef QNETHACK
char* name = getlogin();
if (!strcasecmp(name, "quartata") || !strcasecmp(name, "doorknob")) {
# haha no swamps for you nerd
} else {
if (!rn2(4))
mkroom(SWAMP);
}
#endif