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
 
75%
+4 −0
Challenges Encode with ROT13.5

Given a string, convert all of its letters using ROT13, and all of its digits using ROT5. This is sometimes referred to as ROT13.5. Input A sequence of printable ASCII characters (character cod...

4 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by Razetime‭

75%
+4 −0
Challenges Decoding a non injective bit matrix encoding

The problem Someone has created an encoding format for square bit matrices, however they have found it isn't perfect! One encoding may not decode to exactly one matrix, or it may not even be possi...

0 answers  ·  posted 1y ago by Aftermost2167‭  ·  edited 1y ago by Aftermost2167‭

75%
+4 −0
Challenges Versatile self-printer

Scala 3 and Python 3.8 (pre-release), 2 languages (385 bytes) def String():Any=0 def Int():Any=0 def f(s:String):Any=print(s.replace(chr(81),chr(34)*3+s+chr(34)*3)) class M: f("""def Strin...

posted 3y ago by user‭  ·  edited 2y ago by General Sebast1an‭

Answer
75%
+7 −1
Meta Default Rules: Code Golf I/O

Programs may output via exit code Exit codes are to programs what return values are to functions, so it makes sense that exit codes would be allowed.

posted 3y ago by AndrewTheCodegolfer‭

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

Abusing native number types It's common to restrict inputs, outputs, intermediate algorithm values, etc. to fit into the native number type of the language. This can be a problem for languages li...

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

Answer
75%
+4 −0
Meta Default Rules: Code Golf I/O

Numerical I/O may be given as a character code Input 64 may be given as @ instead. This mostly exists for languages like Brainfuck that only take input through character codes.

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

Answer
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 2y 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 2y ago by snail_‭  ·  last activity 2y 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 2y 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 2y ago by Hakerh400‭  ·  edited 2y 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 2y ago by Adám‭  ·  edited 2y ago by Adám‭

Answer
75%
+4 −0
Challenges Single digit Roman numeral

Python 3.8+, 51 byte lambda n:((i:="IVXLCDM".index(n))%2*4+1)*10**(i//2) Testing the code: f=lambda n:((i:="IVXLCDM".index(n))%2*4+1)*10**(i//2) for s in "IVXLCDM": print(s, f(s)) T...

posted 6mo ago by Arpad Horvath‭  ·  edited 6mo ago by Arpad Horvath‭

Answer
75%
+4 −0
Challenges Is it stuck in a counting loop?

Given a list of non-negative integers the function $f$ replaces every integer with the number of identical integers preceding it (not necessarily contiguously). So f [1,1,2,2,1,3,3] = [1,2,1,2,3,1...

1 answer  ·  posted 5mo ago by WheatWizard‭  ·  last activity 2mo ago by isaacg‭

75%
+4 −0
Challenges The 50 substrings that validate any string of Roman numerals

Given a string of Roman numerals, decide whether it forms a valid Roman number. If not, output the substring that proves this, from the list of 50 strings described below. Relevant fact This chal...

3 answers  ·  posted 2mo ago by trichoplax‭  ·  last activity 11d ago by Arpad Horvath‭

75%
+4 −0
Challenges Plain black webpage

HTML, 16 bytes <body bgcolor=0> an attribute that works well for this challenge. tested on Mozilla Firefox. -3 from [Object object]

posted 3mo ago by Razetime‭  ·  edited 3mo ago by Razetime‭

Answer
73%
+9 −2
Challenges "Hello, World!"

Javascript V8, 888 bytes $=-~[] *~-((~-~ [])** -~- ~[]); _$=$+ ~[];$$_=_$...

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

Answer
71%
+3 −0
Challenges "Hello, World!"

SOGL, 10 bytes ╥‰~⅜,(ε ‘ū Try it here! Built-in compression of "hello"; ", "; "world"; "!", with first letters of words uppercased.

posted 3y ago by dzaima‭

Answer
71%
+3 −0
Challenges "Hello, World!"

Bash, 18 bytes echo Hello, World! Try it online!

posted 3y ago by 2x-1‭

Answer