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
 
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‭

Question code-golf math number base parsing
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
Challenges Prove commutativity on this monoid presentation.

Given two binary strings $A$ and $B$ such that $A$ is an anagram of $B$, output a third binary string $S$ such that both $A$ and $B$ can be created by iterated removals of the substring $10101$ fro...

2 answers  ·  posted 2y ago by WheatWizard‭  ·  last activity 6d ago by m90‭

Question code-golf abstract-algebra
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‭

Question discussion answering
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 2y ago by trichoplax‭  ·  last activity 8mo 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 2y ago by Lundin‭  ·  edited 8mo 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 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 2y ago by trichoplax‭  ·  last activity 2y ago by RubenVerg‭

Question code-golf polyominoes
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 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

Given a sequence of lower case letters, sort them into order of height. Heights The heights of letters are dependent on font, so for this challenge the height order to be used is as defined below...

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

Question code-golf string alphabet
71%
+3 −0
Challenges Lowercase, but not just the letters

Given a string of printable ASCII characters, convert them all to lowercase, except not just the letters. ASCII characters that are letters have a bit in their binary representation that is 0 for ...

7 answers  ·  posted 2y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

Question code-golf alphabet binary
71%
+3 −0
Challenges Mediocre pop count

Given a sequence of letters, omit those with the highest or lowest pop count. Terminology The pop count or population count of a binary string is the number of 1s in it. For this challenge, the ...

6 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by emanresu A‭

Question code-golf alphabet binary
71%
+3 −0
Meta Thoughts on hiding challenge sections with expandable details tags

I think everything strictly needed to write or judge a solution should never be hidden. If you feel it is too large, think about how to shorten it. Information that is not strictly necessary can b...

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

Answer
71%
+3 −0
Challenges The holeyest base

Japt -h, 19 18 bytes Gõ ñ@ìX xg#‘5#}4s3 Try it Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U G :16 õ :Range [1,G] ñ :Sor...

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

Answer
71%
+3 −0
Challenges 8 coexisting queens

This is a fixed output challenge. Output a textual representation of a chessboard hosting 8 queens, none of which are attacking each other. There are 92 ways of arranging them, 12 if rotations and...

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

Question code-golf kolmogorov-complexity string
71%
+3 −0
Challenges 8 coexisting queens

JavaScript, 48 bytes _=>[..."41506372"].map(x=>1e8/9+10**x|0).join` ` Try it online! The string "41506372" encodes the position of the queen in each row. 1e8/9 gives 11111111.1111......

posted 2y ago by m90‭

Answer
71%
+3 −0
Challenges The holeyest base

Given a positive integer as input, indicate which base from 2 to 16 gives the most holes in the representation of the input in that base. The digits used are 0123456789ABCDEF. Note that these incl...

6 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by Razetime‭

Question code-golf base
70%
+5 −1
Meta What are the rules of programming language compliance?

If there exists something (reasonable) that can run it, it's valid. This includes obscure, non-standards-compliant compilers (though this should be specified in the answer if needed). So any poste...

posted 4y ago by dzaima‭

Answer
70%
+5 −1
Meta Default Rules: Code Golf I/O

Turing machines may use the contents of their tape pre-execution as their input

posted 3y ago by AndrewTheCodegolfer‭

Answer
66%
+2 −0
Challenges A number adder, not a death adder

Haskell, 64 bytes main=do a<-getLine;putStr$"main=getLine>>=print.("++a++"+).read" Try it online! Run both programs

posted 4y ago by Hakerh400‭

Answer