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.6k posts
 
75%
+7 −1
Meta Default Rules: Code Golf I/O

Unless explicitly asking for exactly two values, you may use any truthy/falsey values in decision problems For instance, considering the hypothetical challenge "Determine if a number is non-divisi...

posted 3y ago by Moshi‭

Answer
75%
+4 −0
Meta Default Rules: Random

Every outcome must be possible For example, if the challenge requires a random number from 1-5, all 5 numbers must be possible. It does not need to be uniformly random (unless otherwise specified)...

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

Answer
75%
+4 −0
Meta Default Rules: Loopholes

Storing information in the platform specs We should disallow requiring the program to be run on some platform to store information for the challenge. An extreme example would be Nullary, in which ...

posted 3y ago by AndrewTheCodegolfer‭

Answer
75%
+4 −0
Meta How free is "free" for cops and robbers?

Free access must not be finite There has to be a time-unlimited, free way to run the language in question.

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
75%
+4 −0
Meta How free is "free" for cops and robbers?

Languages with free online interpreters are free This includes all languages currently on tio.run, for example.

posted 3y ago by AndrewTheCodegolfer‭

Answer
75%
+4 −0
Challenges Caesar shift cipher

Introduction What is the Caesar shift cipher (ROT$n$)? It's basically a cipher sequence that changes a letter's value from the number chosen. If we use ROT1 on "games", we get "hbnft". The basic i...

7 answers  ·  posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

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

Today, I have posted my first challenge in Code Golf. I have made the Job in 202 byte. Someone in comments, have changed variables name. e.g: From rot to o, and this renaming have saved 2 bytes. ...

1 answer  ·  posted 3y ago by Kevin M. Mansour‭  ·  edited 3y ago by Kevin M. Mansour‭

Question discussion
75%
+4 −0
Challenges Gamer Meme Creator

Ruby, 67 65 bytes -2 from Razetime ->s,a{[s.center(l=a.map(&:size).max),*a,"BOTTOM TEXT".center(l)]} Takes the art and outputs as a list of lines. Try it online!

posted 3y ago by snail_‭  ·  edited 3y ago by snail_‭

Answer
75%
+4 −0
Meta Answering challenges with languages newer than the challenge

Somewhere Else, there was a long-standing rule that to answer a challenge, you couldn't use languages, language versions, or features that were created or introduced after the challenge was posted....

2 answers  ·  posted 3y ago by snail_‭  ·  last activity 3y ago by user‭

Question discussion
75%
+4 −0
Meta Answering challenges with languages newer than the challenge

Answering with languages newer than the challenge should absolutely be allowed Most of the time, when a language is newer than a challenge, it's just a coincidence. By not allowing people to answe...

posted 3y ago by user‭

Answer
75%
+4 −0
Challenges It's Hip to be Square

Haskell, 24 bytes Probably the optimal solution. Credits go to nimi from PPCG. f n=elem n$map(^2)[0..n] Try it online! My original solution, 25 bytes f a=any((==a).(^2))[0..a] Try it ...

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

Answer
75%
+4 −0
Challenges It's Hip to be Square

APL (Dyalog Extended), 3 bytes √∊… Try it online! Is the square root in the range?

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

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Ruby, 38 bytes Simple map and sum over the coefficients. No TIO link, this uses numbered lambda parameters which require Ruby 2.7. ->l,x{l.each_with_index.sum{_1*x**_2}}

posted 4y ago by snail_‭

Answer
75%
+4 −0
Challenges Calculate a person's age

Challenge Given a date with day, month and year, calculate how old a person born on that day would be today. Input can be in any reasonable format(params, array, date object). Input will never b...

0 answers  ·  posted 4y ago by Razetime‭

Question code-golf date
75%
+4 −0
Challenges Generate Lewis Caroll's Jabberwocky

The task is to generate the text of Lewis Caroll's Jabberwocky. The text, quoted from Wikipedia, is as follows (I've replaced a non-ASCII character with ASCII, otherwise it's direct copy&paste...

4 answers  ·  posted 4y ago by celtschk‭  ·  last activity 3y ago by General Sebast1an‭

75%
+4 −0
Challenges Reverse an ASCII string

Shakespeare Programming Language, 184 bytes ,.Ajax,.Puck,.Act I:.Scene I:.[Enter Ajax and Puck]Scene V:.Puck:Open mind!Be you worse zero?If soLet usScene L!Remember you!Let usScene V!Scene L:.Puck...

posted 4y ago by Corsaka‭

Answer
75%
+4 −0
Challenges Truthify an array

C (gcc), 100 bytes i,j;f(x,y,p)int*p;{puts("[");for(;i<x;i++)for(j=0;j<y;j++)*p++&&printf("[%d,%d],",i,j);puts("\b]");} Try it online! Note that TIO console doesn't handle back...

posted 4y ago by Lundin‭  ·  edited 4y ago by Lundin‭

Answer
75%
+4 −0
Challenges 1, 2, Fizz, 4, Buzz!

RoadLang, 340 bytes wagwan my slime x is 0 rip dat bong till x bigger den 99 n dat x is x n 1 ayy bossman (x leftova 15) be 0 init bruv man say"FizzBuzz" yeah init bruv ayy bossman (x lef...

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges "Hello, World!"

Python 2, 20 bytes print"Hello, World!" Try it online!

posted 4y ago by xnor‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Vyxal, 6, 5, 4 bytes Źe*∑ Try it Online! Takes input in the format coeffs, x Explained Źe*∑ Ź # Generate range [0, len(coeffs)) e # Calculate x ** [0, len(coeffs) (vectorising) ...

posted 4y ago by lyxal‭  ·  edited 4y ago by lyxal‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

JavaScript (Node.js), 40 bytes f=(a,b,c=1)=>a.reduce((d,e)=>d+e*(c*=b)) Try it online!

posted 4y ago by Hakerh400‭

Answer
75%
+4 −0
Challenges Obligatory Quine Challenge

Husk, 8 bytes S+s"S+s" Try it online! Basically Leo's original quine. It concatenates the string evaluated version of S+s to itself. So: "S+s" + "\"S+s\"" gives the original code.

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Japt, 12 bytes ÊÆgX *VpXÃr+ Loops through the range of integers 0 to n-1, calculates each term, and sums. Try it

posted 4y ago by Quintec‭

Answer
75%
+4 −0
Challenges "Hello, World!"

Perl 5 -E, 18 bytes say"Hello, World!"

posted 4y ago by msh210‭  ·  edited 3y ago by user‭

Answer
75%
+4 −0
Meta Do you want any special tag styling or requirements?

Codidact allows you to define three special types of tags: topic tags: these are treated as ordinary tags in all respects except that they're styled differently so they stand out. You can see...

1 answer  ·  posted 4y ago by Monica Cellio‭  ·  last activity 4y ago by Razetime‭

Question discussion