Hey..I'm trying to fix an on hold question, and I have a question about it. Is there a specific way I can say non-negative "counting numbers", like just normal numbers?
@Helka right now I have "non-negative integer" in the question, and I also have "input and output are both in decimal format, using non-negative counting numbers. (0,1,2,3,...)" but I think there's rule confusion with people asking about leading 0's and whatnot.
@atlasologist I think the problems are A) how should leading zeros be handled? Can they be trimmed? B) remove the restriction on requiring I/O to be numbers. They should be allowed to be taken as strings
@Downgoat sounds good. I can make the distinction for leading zeros, and I'll lift the I/O restriction. Just for future reference, is there shorthand for "non-negative integers in decimal format without leading zeros (ie, 0,1,2,3 ...)"?
@atlasologist oh sorry, I didn't think correctly >_> I think in this case specify there will be no leading zeros in the input. Because in this challenge leading zeros would actually be significant, you should specify it.
A dual graph is defined such that for every "face" in a graph G, there is a corresponding vertex in the dual graph, and for every edge dividing two "faces" on the graph G, there is an edge in the dual graph connecting the vertices corresponding to the two faces of the original graph.
Here is a s...
Lets play a game of Meta tic-tac-toe!
This is a king-of-the-hill tournament of Meta tic-tac-toe. The rules of Meta tic-tac-toe are as follows:
All of the regular rules of tic-tac-toe apply.
There are nine boards arranged to make one master board. Like so:
0|1|2 || 0|1|2 || 0|1|2
----- || --...
two bots battle with a custom fairy chess piece, with input like kriegspiel (obscure chess variant); each bot can only tell whether; the other piece could move/capture the bot at their position, whether they can move to a specific square, or if the other piece is in that square that they can attack
Inspired by this, print an ascii diamond pattern built using 0-9.
Rules
Input n should be between 0-9, anything outside that range is undefined
The diamond should be padded with spaces
The middle line should always have no padding and be the only line to contain n, in the center
Print to stdou...
Stackylogic is a logic-based programming language I made up that take in 0's and 1's for input and outputs a single 0 or 1 upon completion.
A Stackylogic program consists of lines that can only contain the three characters 01? as well as exactly one < at the end of one of the lines. Lines may no...
Btw if anyone's working on that diamond with numbers thing, using a back-to-back range to define the back-to-back ranges works really well (see my answer there).
>>> a=str.append
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'str' has no attribute 'append'
>>>
I write firmware for work, and the stupid board developers decided to bundle the IDE and compiler, so I have to install like 10 different <company name> + studio IDE's and literally every single one of them is the worst IDE I've ever used.
Meme: Failing to Outgolf Dennis
Origin: Dennis and anyone who tries to outgolf him.
Cultural Height: Until PPCG is no more (forever)
Background: Dennis always wins.
or, alternatively,
Seriously. Almost no one has beaten Dennis, ever. If they have, he's just golfed it down more.
Newer ve...
can't it won't retain (or will be very unreliable) that the boolean will propogate all the way down the CST. (e.g. from the number token to property token to expression alpha token to expression token to array token to expression alpha token to expression token to assignment token)
Do you recognize the PPCG logo?
it looks like this, when you do an ascii art of it.
+---+
|PCG|
+---+
v
Now, In this Code Golf, You will make a code, that makes logos for other sites, similar to the PPCG logo.
What You should do
The "Shortened" string will be the string, with all upper ca...