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
 
66%
+2 −0
Sandbox Net​​ or​​ not? [FINALIZED]

posted 11mo ago by trichoplax‭  ·  edited 11mo ago by trichoplax‭

66%
+2 −0
Challenges Borromean coprimes

Japt v1.4.5 -!, 8 bytes à ËryÃa1 Try it or run all test cases à ËryÃa1 :Implicit input of array à :Combinations (with the original array first) Ë :Map r ...

posted 5mo ago by Shaggy‭

Answer
66%
+2 −0
Challenges Expand a greyscale/colour hex code

Consider a type of hexadecimal colour code that supports shorthand for both greyscale and colour: A 6 digit code is interpreted as 2 digits for red, followed by 2 for green, then 2 for blue. A ...

5 answers  ·  posted 5mo ago by trichoplax‭  ·  last activity 5mo ago by Shaggy‭

Question code-golf string
66%
+2 −0
Challenges Expand a greyscale/colour hex code

x86-64 machine code, 32 bytes A4 FF CA 6A 06 58 F6 F2 50 3C 03 59 51 74 08 AC F3 AA FF CA 75 F5 F3 66 AD 66 F3 AB 58 B0 07 C3 Try it online! Following the standard calling convention for Unix-...

posted 5mo ago by m90‭

Answer
66%
+2 −0
Challenges Display a Progress Bar

BQN, 32 bytes (']'∾˜'['∾@+45+50↑79⥊˜·⌊×⟜50÷⊢)´ A tacit function. A pity, I had to add the parenthesis so I can fold the list of values that represent the fraction. Otherwise, assuming left and ...

posted 3mo ago by panadestein‭

Answer
66%
+2 −0
Challenges Convert to Hexadecimal

Lean 4, 103 100 95 83 bytes def h:=λi=>if i<16then s!"{"0123456789ABCDEF".get ⟨i⟩}"else h (i/16)++h (i%16) Try it online! I actually am not sure how this even works, lol. I had thought...

posted 2mo ago by CrSb0001‭  ·  edited 2mo ago by CrSb0001‭

Answer
66%
+2 −0
Challenges "Hello, World!"

Taxi, 183 bytes Go to Writer's Depot:w 1 r 3 l 2 l."Hello, World!"is waiting at Writer's Depot.Pickup a passenger going to Post Office.Go to Post Office:n 1 r 2 r 1 l.Go to Taxi Garage:s 1 l 1 l 2...

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

Answer
66%
+2 −0
Meta A Code Golf specific favicon

On main Codidact Meta there was a request for Unique favicons for each site. This has had a positive response and no objections (the nearest is one answer that says it should be opt in per communit...

1 answer  ·  posted 3mo ago by trichoplax‭  ·  last activity 3mo ago by Andreas demands justice for humanity‭

Question discussion
66%
+2 −0
Meta A Code Golf specific favicon

The process to create a small icon from a big one, is to not just reduce its resolution by a standard downsample, but to recreate the icon from scratch with gradually fewer details. As your downsam...

posted 3mo ago by Andreas demands justice for humanity‭

Answer
66%
+2 −0
Challenges Give the fool's fibonacci sequence

Lean 4, 115 109 104 89 bytes Note: had to update bytecount to take into account non-printable characters. For anyone who isn't familiar with Lean, it's basically an interactive theorem prover t...

posted 2mo ago by CrSb0001‭  ·  edited 2mo ago by CrSb0001‭

Answer
66%
+2 −0
Challenges Find all unique quintuplets in an array that sum to a given target

Japt, 12 bytes Outputs an empty array if no solution is possible. Íà5 â fÈx ¶V Try it Íà5 â fÈx ¶V :Implicit input of array U & target integer V Í :Sort U à5 ...

posted 6mo ago by Shaggy‭

Answer
66%
+2 −0
Challenges Display a Progress Bar

Python 3, 48 bytes def f(n,d):return f"[{(50*n+d//2)//d*'|':-<50}]" Try it online!

posted 7mo ago by celtschk‭

Answer
66%
+2 −0
Challenges Source with the whole alphabet in order of appearance

TI-BASIC, 23 bytes Like lyxal's answer, this program exits immediately, so nothing after the Stop is executed. The program Stop GarbageCollectDetectAsymOffDispGraphiconj(BLACKClrfHomenormalpdf(...

posted 8mo ago by Sylvester‭  ·  edited 8mo ago by Sylvester‭

Answer
66%
+2 −0
Challenges "Hello, World!"

Stuck, 0 bytes That's it. An empty program in Stuck prints "Hello, World!". It's literally hardcoded in the interpreter.

posted 1mo ago by lyxal‭

Answer
66%
+2 −0
Challenges Display a Progress Bar

C (gcc), 88 bytes char a[53]={91},*p=a+1,i;f(n,d){for(;i<50;)p[i++]=1.*n/d<=i/50.?45:124;p[i]=93;puts(a);} Try it online! There's two approaches to this in C that I came up with - eith...

posted 7mo ago by Lundin‭

Answer
66%
+2 −0
Meta Category migration and the sandbox

Some additional cosiderations on using the sandbox: First, a migration mechanism might encourage good behaviour, for example by migration being only possible if the post has a minimal score, and/o...

posted 7mo ago by celtschk‭

Answer
66%
+2 −0
Q&A Transferable golfing skills

We have many questions about how to golf in a specific programming language. These result in tips that apply only to that language or closely related languages. What advice do you have on golfing ...

0 answers  ·  posted 2mo ago by trichoplax‭  ·  edited 2mo ago by trichoplax‭

Question code-golf tips language-agnostic
66%
+2 −0
Meta Formating an answer to work with the automated leaderboard

How should I format my answer so that it works correctly with the automated leaderboard that shows under a challenge? What is the required format? How much flexibility is there? Once this ...

0 answers  ·  posted 1mo ago by trichoplax‭  ·  edited 19d ago by trichoplax‭

Question support answering leaderboard
66%
+2 −0
Challenges Print the modular multiplicative inverse / virtual fractions

Pyth, 16 bytes .^RtJ^2yTyJ%2S97 Try it online! This solution uses Euler's formula, which states that if a is coprime to m, a^(phi(m)-1) = a^-1 mod m where phi(m) is the totient function, t...

posted 1y ago by isaacg‭

Answer
66%
+2 −0
Challenges Round trip stones

$N$ vessels initially contain $3$ stones each. What is the probability of having at least $3$ stones in the first vessel after moving a uniformly random selection from the first vessel to the secon...

1 answer  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by Arpad Horvath‭

Question code-golf math number probability
66%
+2 −0
Challenges Construct the Irish possessive

In this challenge you will take an Irish word and a personal pronoun and create the possessive pronoun construction combining the two. For example sé, madra becomes a mhadra. Translated to English...

1 answer  ·  posted 1y ago by WheatWizard‭  ·  last activity 1y ago by Arpad Horvath‭

Question code-golf natural-language
66%
+2 −0
Challenges The 50 substrings that validate any string of Roman numerals

Python, 344 bytes 534 bytes: This is not golfed in any way. But it's the current winner! def validate_roman_numeral(candidate): invalid_strings = ["CCCC", "CCD", "CCM", "CDC", "CMC", "CMD",...

posted 1y ago by daviewales‭  ·  edited 12mo ago by daviewales‭

Answer
66%
+2 −0
Challenges Is it a valid hidden word?

The Universal Crossword has a set of guidelines for crossword puzzle submissions. In this challenge we are going to be concerned with their rules for hidden word themes. A hidden word clue consis...

1 answer  ·  posted 1y ago by WheatWizard‭  ·  last activity 1y ago by Razetime‭

Question code-golf string decision-problem
66%
+2 −0
Meta Leaderboard sorting bug

The leaderboard that shows below a code golf challenge can either sort the answers to show the winner for each language separately (if "Group by language" is ticked) or it can show all the answers ...

1 answer  ·  posted 1y ago by trichoplax‭  ·  last activity 11mo ago by Monica Cellio‭

Question bug leaderboard