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
 
71%
+3 −0
Challenges Make $2 + 2 = 5$

Ruby, 20 bytes ->a,b{4[a]*4[b]+a+b} Attempt This Online!

posted 3y ago by radarek‭

Answer
71%
+3 −0
Challenges Can you give me half?

Python 3, 7 distinct characters, 11 bytes True/-~True Try it online!

posted 3y ago by m90‭

Answer
71%
+3 −0
Challenges Can you give me half?

J, 4 3 distinct, 6 bytes -:_-:_ Half of _ -: _ which is asks if infinity matches infinity. Thanks to @xash in the APL farm discord for saving the 3 unique bytes and orthoplex for catching my bl...

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

Answer
71%
+3 −0
Challenges Can you give me half?

Perl, 3 distinct, 12 bytes s//yy//y/y// Try it online! Prepends yy to the start of $_, and then transliterates them, dividing the count of each.

posted 3y ago by primo-ppcg‭  ·  edited 3y ago by primo-ppcg‭

Answer
71%
+3 −0
Challenges Can you give me half?

Clojure - 15 characters total, 5 unique Inspired by the Embed ESCR solution above, I realized I could do something very similar in Clojure: (/(*)(+(*)(*))) This returns 1/2, which is a Ratio i...

posted 3y ago by BobJarvis‭

Answer
71%
+3 −0
Challenges Can you give me half?

Python 3, 5 unique bytes, 28 total (()==())/((()==())+(()==())) (, ), =, /, + Uses (()==()) to get True with only 3 unique characters, as well as making the later grouping of (...+...) free. ...

posted 2y ago by Moshi‭

Answer
71%
+3 −0
Sandbox Looping counter [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 1y ago by trichoplax‭

71%
+3 −0
Challenges Looping counter

Ruby, 18 bytes loop{$><<$/=?*+$/} Try it online!

posted 2y ago by orthoplex‭

Answer
71%
+3 −0
Sandbox Create a range grid

posted 2y ago by Razetime‭

Article code-golf matrix
71%
+3 −0
Challenges From the smallest seed

Challenge It's a bootstrapping challenge this time! Write a full program that, once run, writes the source code of another program that in turn, once run, writes the source code for another progra...

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

71%
+3 −0
Challenges Make a frequency table (histogram)

Challenge Given an array in any suitable format, create a frequency table for it. i.e: Pair each unique element with the number of times it appears in the array. You can return the frequency tabl...

10 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Moshi‭

Question code-golf math
71%
+3 −0
Challenges Find n Niven Numbers

Vyxal, 4 bytes ‡∑Ḋȯ Try it Online! Explained ‡∑Ḋȯ ‡ ȯ # Find the first input numbers where: ∑ # The sum Ḋ # Divides that number

posted 2y ago by lyxal‭

Answer
71%
+3 −0
Challenges Looping counter

Vyxal, 5 4 bytes ¤{‹… Try it Online! This is so stupid and I love it Explained ¤{‹… ¤ # Push an empty string { # Forever: ‹ # Append a "-" to the top of the stack … # ...

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

Answer
71%
+3 −0
Sandbox Chequer checker [FINALIZED]

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

71%
+3 −0
Meta Filtering the sandbox for ease of feedback

I see the Sandbox as a vital part of challenge design. When I visit the Sandbox I'd like to be able to show only proposals that are not finalized, so I can focus feedback where it is needed. In th...

3 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by Monica Cellio‭

Question discussion sandbox
71%
+3 −0
Challenges Presumptuous base conversion

Take an input string representing a number and convert it to decimal (base 10). However, the base of the input is not specified. Assume the input is in the smallest base for which its digits are va...

5 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by Shaggy‭

71%
+3 −0
Challenges Presumptuous base conversion

Python, 45 bytes I am not a Python guy at all, so I'm quite proud of this. I'm sure, though, there's something simple I could be doing to save myself a few bytes! lambda n:int(n,int(max("1"+n),...

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

Answer
71%
+3 −0
Challenges Chequer checker

BQN, 32 bytesSBCS Run online! {∨´∾8(⥊(⊐⌾⥊𝕩)⍷·≠⌜˜2|/∘⥊)¨1+↕≠⥊𝕩} Brute force: tests against all boards up to the number of characters in 𝕩 using Find (⍷). Using the longest dimension is faster b...

posted 2y ago by Marshall Lochbaum‭  ·  edited 2y ago by Marshall Lochbaum‭

Answer
71%
+3 −0
Meta How should we handle incorrect answers?

Recently a flag came to my attention on this post: https://codegolf.codidact.com/posts/280372/281943#answer-281943 It is a well-intentioned answer to the challenge, but unfortunately it is wrong, ...

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

71%
+3 −0
Q&A Hosting fastest code challenges

When posting a fastest-code challenge, what do I need to bear in mind? Unlike with code-golf challenges, where the score is simply the number of bytes in the source code, for a fastest-code challe...

1 answer  ·  posted 1y ago by trichoplax‭  ·  last activity 3mo ago by Lundin‭

Question tips fastest-code
71%
+3 −0
Q&A Hosting fastest code challenges

If restricting everyone to the same system, then we can force every contestant to use https://tio.run and the on-site bench-marking found below "debug" -> "real time" as efficiency metric. Examp...

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

Answer
71%
+3 −0
Challenges Lowercase, but not just the letters

Python 3, 35 bytes lambda x:[chr(ord(i)|32)for i in x] Try it online! Performs a list comprehension on the input string; for each character it: transforms it into the ASCII character code...

posted 2y ago by dino‭

Answer
71%
+3 −0
Challenges Digit antitranspose

Vyxal, 3 bytes ∩ṘR Try it Online! Transpose, reverse, reverse each.

posted 2y ago by steffan153‭

Answer
71%
+3 −0
Challenges Sort letters by height

Vyxal, 12 bytes µ«,←⋎„¶ɽ₌Ż«ḟ Try it Online! Outputs as a list of characters. Sort by index in (compressed) tibdfghklpqyj.

posted 2y ago by steffan153‭

Answer
71%
+3 −0
Challenges Label a hinged tetromino

Given a hinged tetromino, give it a unique, consistent label independent of location, rotation, and reflection. Tetrominoes A tetromino is a connected subset of the square tiling, composed of 4 s...

2 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by RubenVerg‭