Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
1.5k posts
 
77%
+5 −0
Challenges Weave Strings Together

APL (Dyalog Unicode), 10 bytes Full program. Prompts for list of strings from stdin. 0~⍨,⍉↑0,¨⎕ Try it online! ⎕ prompt for list of strings 0,¨ prepend a zero to each ↑ convert to orthogona...

posted 3y ago by Adám‭  ·  edited 3y ago by Adám‭

Answer
77%
+5 −0
Challenges Given the preorder and the inorder of a tree, output the postorder

Definitions A binary tree is either a null (leaf), or an object (node). A node contains a value (non-negative integer) and two pointers (left and right) to two separate binary trees. A binary tre...

2 answers  ·  posted 3y ago by Hakerh400‭  ·  last activity 2y ago by radarek‭

Question code-golf
77%
+5 −0
Q&A Befunge Golfing Tips

Post tips for Befunge code golf here! This is based on a type of question I used to see on CGCC, where people would post tips for golfing in various languages. They happened to be quite helpful, s...

3 answers  ·  posted 3y ago by moony‭  ·  edited 2y ago by user‭

Question code-golf tips
77%
+5 −0
Challenges A number adder, not a death adder

Create a program P1 which takes as input a base 10 number N1 (the numbers for the variables are important). Given N1, P1 will print a program P2. P2 will take as input a base 10 number N2 and outpu...

14 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 2y ago by torres‭

77%
+5 −0
Challenges Add two negabinary integers

About Negabinary Negabinary means base negative two (-2). That is, the $n$th place value is determined by $(-2)^n$. Negabinary numbers can be evaluated just like any other base system. For exampl...

3 answers  ·  posted 3y ago by Moshi‭  ·  last activity 3y ago by Shaggy‭

Question code-golf math
77%
+5 −0
Meta How do we handle standardizing things?

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...

posted 2y ago by Quintec‭  ·  edited 2y ago by Quintec‭

Answer
77%
+5 −0
Meta Default Rules: Code Golf I/O

Turing machines supporting multiple halt states may output with the state they halt on Similar to the exit code submission.

posted 2y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta Default Rules: Loopholes

Using a non-free (beer) language on a cops-and-robbers challenge For a discussion on what counts as "free", see this post. Cops-and-robbers challenges have two components: a cop posts a program o...

posted 2y ago by AndrewTheCodegolfer‭  ·  edited 2y ago by Moshi‭

Answer
77%
+5 −0
Meta Default Rules: Flags and Other Compile-Time Options

How should we deal with flags / command line options when scoring entries?

2 answers  ·  posted 2y ago by Moshi‭  ·  last activity 2y ago by Quintec‭

Question default-rules
77%
+5 −0
Meta Default Rules: Libraries

How should we deal with golfing libraries when scoring entries? Continuation of Is my extension-like library allowed to be used in answers?, the answer to that question seems to be a "yes", now we...

1 answer  ·  posted 2y ago by Moshi‭  ·  edited 2y ago by Quintec‭

Question default-rules
77%
+5 −0
Meta Default Rules: Loopholes

Using inconsistent I/O An example would be a program whose only two outputs given some input can be 2 and 11. The program is print(11): claiming that it outputs in unary for some outputs and in de...

posted 2y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta Default Rules: Loopholes

Optimizing specifically for the given test cases Applies to "code-speeding" or fastest-code where your program must run as quickly as possible, as well as compression challenges. Obviously, there ...

posted 2y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta How free is "free" for cops and robbers?

I have proposed that we shouldn't use nonfree languages to compete in cops-and-robbers challenges, but this proposal needs some demarcation. Matlab, Stata, LabVIEW all have finite free trials. Bat...

4 answers  ·  posted 2y ago by AndrewTheCodegolfer‭  ·  last activity 2y ago by Razetime‭

77%
+5 −0
Meta Is it good practice to change the names of variables in challenges?

Yes Unless the challenge tells you what to name your function, you're free to use anything. This means that single character names are usually the best option. Note that anonymous function submis...

posted 2y ago by Moshi‭

Answer
77%
+5 −0
Challenges Guess the language! (Cops' Thread)

ROBBERS' THREAD A famous cops-and-robbers challenge whose source shall remain unnamed is brought to Codidact. You are a cop. You should write a program in a "famous" (has an English Wikipedia/Eso...

16 answers  ·  posted 2y ago by AndrewTheCodegolfer‭  ·  last activity 2y ago by Shaggy‭

77%
+5 −0
Q&A What's a code bowling challenge?

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, ...

posted 2y ago by Quintec‭

Answer
77%
+5 −0
Challenges Gamer Meme Creator

Challenge You will be given a string and an ascii art as input. The string must be placed above the ascii art, and centered based on its longest line. The text BOTTOM TEXT must be placed below...

4 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by user‭

77%
+5 −0
Q&A Getting started with making (and/or solving) KOTH challenges

About King of the Hill King of the Hill (KoTH) is a relatively straightforward concept: Entrants create bots; bots compete against each other. Making a KoTH challenge The exact details of the co...

posted 2y ago by Moshi‭

Answer
77%
+5 −0
Challenges Guess the language! (Robbers' Thread)

Cracks Shaggy‭'s answer Let the cops be "Cops" The conjunction is " and " The robbers are "Robbers" Say the cops with the conjunction with the robbers It can be one of: FALSE Phooe...

posted 2y ago by Hakerh400‭  ·  edited 2y ago by Hakerh400‭

Answer
77%
+5 −0
Challenges It's Hip to be Square

Python 3, 20 19 bytes lambda n:n**.5%1==0 -1 byte thanks to @shaggy : 0.5 -> .5 Try it online!

posted 2y ago by bastolski‭  ·  edited 2y ago by bastolski‭

Answer
77%
+5 −0
Challenges 99 Shortened Bottles of Beer

Disclaimer This challenge also exists in CGCC, but if you want to compete here (too), then hop in! Challenge Recreate "99 Bottles of Beer on the Wall", using the least bytes possible. Lyrics: ...

13 answers  ·  posted 2y ago by General Sebast1an‭  ·  last activity 2y ago by General Sebast1an‭

77%
+5 −0
Challenges Create a range grid

This challenge is based on the i. verb from J. A range grid is basically a range of m × n numbers fit into a rectangular grid with m rows and n columns. A 2×3 range grid would be: 0 1 2 3 4 5 ...

8 answers  ·  posted 2y ago by Razetime‭  ·  last activity 1y ago by Shaggy‭

Question code-golf matrix
77%
+5 −0
Meta Rules for function submissions

What are our rules for function submission? What constitutes a function, and what makes a submission valid? Language agnostic answers are allowed.

2 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Lundin‭

Question discussion
77%
+5 −0
Challenges Repeat the characters

Given a string and a non-negative integer $n$, output a new string in which each character is repeated $n$ times. Test cases: "abc", 1 -> "abc" "Hello", 0 -> "" "double", 2 -> "ddo...

14 answers  ·  posted 2y ago by celtschk‭  ·  last activity 2y ago by south‭

Question code-golf string
77%
+5 −0
Challenges Decode periodic decimal fractions

Rational numbers in decimal representation can have an infinite periodic part. One common way to write this down is to repeat the periodic digits and then add three dots. Numbers without those thre...

2 answers  ·  posted 2y ago by celtschk‭  ·  edited 2y ago by General Sebast1an‭