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
 
77%
+5 −0
Challenges Truthify an array

APL (Dyalog Extended), 1 byte ⍸ ¯\(ツ)/¯ Try it online!

posted 3y ago by rak1507‭

Answer
77%
+5 −0
Challenges Truthify an array

Jelly, 2 bytes ŒṪ Try it online! 1-indexed, but the footer converts to 0-indexed. Less built-in: Jelly, 3 bytes œẹ1 Try it online! œẹ All multidimensional indices of 1 one. ...

posted 3y ago by Unrelated String‭

Answer
77%
+5 −0
Challenges Generate Lewis Caroll's Jabberwocky

Japt, 625 615 bytes `'T°s ߍ¦g, „d e sҐy ‘vƒ Did gyœ „d g‹½e ˆ e °¼; A¥ Úßy ØÀ e ޒgovƒ, A˜ e Ú  ÎÈs ŒtgŸ¼. ` +i` "BeØ e {=`Jab¼rwock`}, my s! T” jaws È ßÒ, e claws È ¯t®! BeØ e...

posted 3y ago by Quintec‭  ·  edited 2y ago by Quintec‭

Answer
77%
+5 −0
Meta Should sandbox posts give rep?

Update: we can do this more easily now. We can change the reputation grants per post type per category, both up and down, without creating a new post type. Sandbox posts would continue to use the...

posted 3y ago by Monica Cellio‭  ·  edited 2y ago by Monica Cellio‭

Answer
77%
+5 −0
Challenges Output 256 in many different ways

Husk, 9 solutions 1. Classic 256 Try it online! 2. Squaring □□4 Try it online! 3. Incrementing →→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→→...

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

Answer
77%
+5 −0
Challenges Longest parallel lines

JavaScript (Node.js), 541 540 bytes for(_='=>)==!(+==0h,.map(M,R(=1,,e,b &&Nl=[-1,))s(n,=(a a=u,v(i=g(z,u,f=(a,w,cs=Math.max,r?[...r(--a ) (a)]:[],R>&b>&a<w&b<...

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

Answer
77%
+5 −0
Challenges Longest parallel lines

Note: This challenge was underspecified and bad, and as such I would not encourage answering it in the future. Challenge You will be given a single 2D boolean array $M$. You may take its dimensi...

1 answer  ·  posted 3y ago by rak1507‭  ·  edited 3y ago by rak1507‭

Question code-golf boolean
77%
+5 −0
Challenges Coat of Many Colours

Scala, 119 bytes Saved 26 bytes after porting Moshi's solution! _ sortBy("y gree br sc bla oc pe rub ol v f li go ch m cre c s ro a l ru g pu w p o b"split " "indexWhere _.startsWith) Original...

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

Answer
77%
+5 −0
Meta Default Rules: Code Golf I/O

You may modify the input in-place If a function takes an input a, it is acceptable that a contains the intended output after executing instead of other forms of output. Note that this means a must...

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

Answer
77%
+5 −0
Sandbox Repeat the characters [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 10mo ago by trichoplax‭

77%
+5 −0
Challenges Make $2 + 2 = 5$

C (gcc), 30 bytes f(x,y){return x+y|!(x^y|x^2);} Try it online! In case the "preferably on a function" requirement can be dropped, then #define f(x,y)x+y|!(x^y|x^2) is 28 bytes.

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

Answer
77%
+5 −0
Challenges Diagonalized alphabet

Task Print the following: ABDFHJLNPRTVXZ CABDFHJLNPRTVX ECABDFHJLNPRTV GECABDFHJLNPRT IGECABDFHJLNPR KIGECABDFHJLNP MKIGECABDFHJLN OMKIGECABDFHJL QOMKIGECABDFHJ SQOMKIGECABDFH USQOMKIGE...

7 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by radarek‭

77%
+5 −0
Challenges Diagonalized alphabet

Canvas, 17 11 bytes Z2n⤢J{×7«mT Try it here! Z The alphabet 2n split into pairs: ["AB","CD","EF",…] ⤢ transposed: ["ACEGI…","BDFHJ…"] J remove and pu...

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

Answer
77%
+5 −0
Meta Can I repost a challenge that I posted elsewhere here?

Yes! You can post it. As you are owner of that post. So, you can do as you want with the post. You can read about license in the question also. This post didn't use Codidact's import script; it...

posted 3y ago by deleted user

Answer
77%
+5 −0
Challenges Recreate the Stack Overflow logo

Originally from Somewhere Else. I thought I'd continue making more drawing challenges here now that I discovered it. Make the Stack Overflow logo using the following criteria: The tray: ...

2 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 2y ago by Anonymous‭

77%
+5 −0
Challenges Are they abundant, deficient or perfect?

Abundant numbers are numbers which are less than their proper divisor sum. For example $18$ is abundant as $1 + 2 + 3 + 6 + 9 = 21 > 18$ Deficient numbers are numbers which are greater than the...

8 answers  ·  posted 3y ago by caird coinheringaahing‭  ·  last activity 2y ago by General Sebast1an‭

77%
+5 −0
Challenges Are they abundant, deficient or perfect?

Husk, 10 bytes kSo±-ȯΣhḊḣ Try it online! keyon is very nice here, but it's still a bit too long, sadly.

posted 3y ago by Razetime‭

Answer
77%
+5 −0
Meta Questions feed for the Challenges category lacks post links

Here is what the top of the feed for the Code Golf Challenges category looks like currently: <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <i...

1 answer  ·  posted 3y ago by Canina‭  ·  last activity 3y ago by ArtOfCode‭

77%
+5 −0
Challenges Create a Sudoku

Write the shortest program that takes no input and outputs a Sudoku solution. For reference, a Sudoku solution is a 9x9 grid of digits where each column, each row and each of the nine 3x3 grids th...

4 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 3y ago by Shaggy‭

Question code-golf sudoku
77%
+5 −0
Meta Is my extension-like library allowed to be used in answers?

Yes, including the fact that it's in C. Using a heading such as "C + BMPL" that links to the library and explains what it does should be fine. I also think that having a way to run it (preferably ...

posted 3y ago by Quintec‭

Answer
77%
+5 −0
Challenges Shuffle a subset of a list

Idea shamelessly stolen from caird and rak1507 Shuffle a subset of a list of unique, positive integers with uniform randomness, given the indices of that subset. For example, given the list $[A, B...

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

77%
+5 −0
Challenges Create an Alphabet Diamond

V (vim), 21 bytes ¬AZ¬YA|òlÄ26|xx>>YGpH Try it online! Explanation: ¬AZ " Insert every character from A to Z ¬YA " Insert every character from Y...

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

Answer
77%
+5 −0
Meta Microcontroller-involving challenges and the rules.

I'd like to make a challenge that involves the use of a microcontroller, specifically, a challenge to read any 4-bit Gray Code from 4 IO pins, and convert it to binary. Simple introductory type cha...

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

77%
+5 −0
Challenges Is it a near-anagram?

Stax, 12 bytes ä╫◙=♥:≡ƒélΣæ Run and debug it +3 after correcting it(thanks, HakerH) Explanation b%s%>{s}M|-%1= b copy the two inputs %s%> is the first's length...

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

Answer
77%
+5 −0
Challenges Is it a near-anagram?

JavaScript (Node.js), 131 bytes Returns true and false g=(s,t,c=[...t])=>([...s].forEach(v=>(y=c.indexOf(v),c.splice(y,y>=0))),c) f=(s,t)=>(x=g(s,t).length)<2&&(y=g(t,s).l...

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

Answer