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
 
80%
+6 −0
Challenges Word Set Square

APL (Dyalog Unicode), 23 bytes Anonymous tacit prefix function. Reuires 0-based indexing (⎕IO←0) (⊢⍪⍨¯1↓⊢,∘↑-∘⍳∘≢↑¨⊢)⊢,⌽ Try it online! ⌽ reverse the argument ⊢, prepend the argument (…) ...

posted 3y ago by Adám‭

Answer
80%
+6 −0
Challenges Beaver Code Decryption

Credit This challenge is taken with permission from https://www.mysterytwisterc3.org/en/challenges/level-1/beaver-code Description The encryption method is as follows: The plaintext is divided ...

6 answers  ·  posted 3y ago by rak1507‭  ·  last activity 2y ago by Shaggy‭

80%
+6 −0
Challenges Weave Strings Together

Jelly, 2 1 byte Z Try it online! -1 byte thanks to Razetime! Full program How it works Z - Main link. Takes a list L on the left Z - Transpose Implicitly print, smashing lists togethe...

posted 3y ago by caird coinheringaahing‭  ·  edited 3y ago by caird coinheringaahing‭

Answer
80%
+6 −0
Challenges Golf a FRACTRAN interpreter

APL (Dyalog Unicode), 33 bytes {×x←⊃(2⌷⍵)(÷⍨(/⍨)0=|)⍺×1⌷⍵:x∇⍵⋄⍺} Try it online! The first case doesn't work because it gets really big, but the other two do. The input is taken on the left a...

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

Answer
80%
+6 −0
Challenges Juggler sequences

A Juggler sequence is a sequence that begins with a positive integer $a_0$ and each subsequent term is calculated as: $$a_{k+1} = \begin{cases} \left \lfloor a_k ^ \frac 1 2 \right \rfloor, &...

9 answers  ·  posted 3y ago by caird coinheringaahing‭  ·  last activity 2y ago by Shaggy‭

80%
+6 −0
Challenges Juggler sequences

BQN, 17 bytesSBCS {𝕩∾1𝕊⍟≠⌊𝕩⋆2|𝕩+÷2} Run online! BQN primitives alone can't express unbounded iteration, so this must be a recursive block function. {𝕩∾1𝕊⍟≠⌊𝕩⋆2|𝕩+÷2} # Function 𝕊 taking argu...

posted 3y ago by Marshall Lochbaum‭

Answer
80%
+6 −0
Challenges Juggler sequences

Jelly, 7 bytes *Ḃ×½ḞµƬ *Ḃ×½ḞµƬ *Ḃ input ^ (input % 2) ×½ multiply sqrt(input) Ḟ floor µƬ iterate until converged and collect results Try it online!

posted 3y ago by rak1507‭

Answer
80%
+6 −0
Challenges Reverse an ASCII string

C (gcc), 34 bytes f(char*s){*s&&f(s+1)^putchar(*s);} Try it online! Alternative: C (gcc), 35 bytes f(s){read(0,&s,1)&&f()^putchar(s);} Try it online! Alternative ...

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

Answer
80%
+6 −0
Challenges Write a Deadfish Interpreter

A rewrite of this SE question with a simpler input format and guidelines. Challenge Deadfish uses a single accumulator, on which all commands are to be performed. It has the following commands: ...

8 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by Zakk‭

80%
+6 −0
Challenges Digit Sum Integer Sequence (working title)

Inspired by this challenge. If anyone has any suggestions for a song title I could use for the challenge title then please leave a comment. Definition We define f(x) for a given integer as the su...

6 answers  ·  posted 2y ago by Shaggy‭  ·  last activity 7mo ago by RubenVerg‭

Question code-golf sequence
80%
+6 −0
Meta Can we have [popularity-contest]s?

Well... maybe not in combination with a code golf challenge, but more like an artistic challenge with some theme, similar to screenshot of the month? For reference see for example Outdoors photo co...

posted 2y ago by Lundin‭

Answer
80%
+6 −0
Meta Default Rules: Loopholes

Cat Quines Quines that simply output the source code due to some sort of implicit I/O, such as 1 in many languages.

posted 3y ago by Quintec‭

Answer
80%
+6 −0
Meta Default Rules: Code Golf I/O

In languages without STDIN (eg ///) programs may input through insertion into the source code Also applies to cellular automata, in which the most natural way of taking input is specifying some sp...

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

Answer
80%
+6 −0
Meta Default Rules: Libraries

Language + libraries count as a separate language In the header of your entry, you should have something like this: C (clang) + <libraries>, <byte count> You do not need to inclu...

posted 3y ago by Moshi‭

Answer
80%
+6 −0
Meta Default Rules: Code Golf I/O

Regexes may output via the list of matched strings (capture group 0)

posted 3y ago by AndrewTheCodegolfer‭

Answer
80%
+6 −0
Meta Default Rules: Loopholes

Multiple URL shorteners in a web-based challenge In challenges which require fetching data from the Internet, URL shorteners can be problematic. This is because: shorteners made after the cha...

posted 3y ago by AndrewTheCodegolfer‭

Answer
80%
+6 −0
Meta Reactions on Code Golf Codidact

None of these are applicable at least not for Code Golf challenges. I think this community should "opt out" of reactions unless we can come up with more relevant ones. "Works for me". Answers ...

posted 2y ago by Lundin‭

Answer
80%
+6 −0
Challenges Golf golf challenge

The task is to create a program which displays a golf score as text. It takes 2 numbers as input, separated by space or new line: The first number is the par of the specific hole. The second nu...

5 answers  ·  posted 2y ago by Lundin‭  ·  last activity 2y ago by radarek‭

Question code-golf
80%
+6 −0
Challenges Keyword golfing

Many programming languages have the concept of keywords, special syntax items that are not just identifiers reserved by some library, but words reserved by the language itself. The challenge is to...

6 answers  ·  posted 2y ago by Lundin‭  ·  last activity 9mo ago by H_H‭

Question code-golf
77%
+5 −0
Meta New solution to same challenge in same language: Change existing answer or add new one?

A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy. Now I wonder if I s...

1 answer  ·  posted 2y ago by celtschk‭  ·  edited 7mo ago by trichoplax‭

77%
+5 −0
Challenges Keyword golfing

Python 3.7, 231 bytes class C:pass def g(): async def f():return;yield;await[3for()in()];nonlocal f if None: with lambda:3or 7and 8as q:del x elif False:raise else:assert 1is not 5 try:...

posted 2y ago by m90‭

Answer
77%
+5 −0
Challenges Can you give me half?

dc, 3 unique bytes, 138 bytes This challenge is pretty easy if you aim for just 4 unique bytes. For example, you could push the stack depth repeatedly to get ascending integers, set the precision ...

posted 2y ago by orthoplex‭

Answer
77%
+5 −0
Challenges Looping counter

Lua, 31 bytes _=''::_::_=_..'*'print(_)goto _ Try it online!

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

Answer
77%
+5 −0
Challenges Reverse an ASCII string

C, 66 59 bytes -7 bytes thanks to Lundin! In-place string reversal f(char*s){s[1]?f(s+1):0;for(char t=*s;s[1];*++s=t)*s=s[1];} Try it online!

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

Answer
77%
+5 −0
Challenges Integer to Roman numeral

JavaScript (Node.js), 147 bytes f=(a,b='IVXLCDM',g=Math.log10(a)<<1,c=10**(g/2),e=a/c|0,i=b[g+1],j=a=>b[g].repeat(a))=>a?(e<4?j(e):e<6?j(5-e)+i:e<9?i+j(e-5):j(1)+b[g+2])+f(a...

posted 3y ago by Hakerh400‭

Answer