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
 
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 4y ago by Monica Cellio‭  ·  edited 3y ago by Monica Cellio‭

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 4y ago by Moshi‭  ·  edited 4y 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 4y 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 4y ago by rak1507‭  ·  edited 4y ago by rak1507‭

Question code-golf boolean
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 4y ago by Hakerh400‭  ·  edited 4y ago by Hakerh400‭

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 4y ago by Razetime‭  ·  last activity 3y ago by radarek‭

Question code-golf kolmogorov-complexity ascii-art alphabet
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 4y ago by dzaima‭  ·  edited 4y 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 4y 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 4y ago by General Sebast1an‭  ·  last activity 3y ago by Anonymous‭

Question code-golf graphical-output
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 4y ago by caird coinheringaahing‭  ·  last activity 3y ago by General Sebast1an‭

Question code-golf math number-theory
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 4y 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 4y ago by Canina‭  ·  last activity 4y ago by ArtOfCode‭

Question bug status-completed
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 4y ago by AndrewTheCodegolfer‭  ·  last activity 4y ago by Shaggy‭

Question code-golf sudoku
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 4y ago by user‭  ·  edited 3y ago by General Sebast1an‭

Question code-golf array-manipulation random
77%
+5 −0
Meta Category migration and the sandbox

Sandbox votes should give no reputation I believe this is already the case, but for completeness: I agree that neither upvotes nor downvotes on Sandbox posts should affect reputation. Although I...

posted 6mo ago by trichoplax‭

Answer
76%
+11 −2
Challenges "Hello, World!"

Javascript V8, 888 bytes $=-~[] *~-((~-~ [])** -~- ~[]); _$=$+ ~[];$$_=_$...

posted 4y ago by ZippyMagician‭  ·  edited 4y ago by ZippyMagician‭

Answer
75%
+4 −0
Challenges "Hello, World!"

Python 2, 20 bytes print"Hello, World!" Try it online!

posted 4y ago by xnor‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Vyxal, 6, 5, 4 bytes Źe*∑ Try it Online! Takes input in the format coeffs, x Explained Źe*∑ Ź # Generate range [0, len(coeffs)) e # Calculate x ** [0, len(coeffs) (vectorising) ...

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

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

JavaScript (Node.js), 40 bytes f=(a,b,c=1)=>a.reduce((d,e)=>d+e*(c*=b)) Try it online!

posted 4y ago by Hakerh400‭

Answer
75%
+4 −0
Challenges Obligatory Quine Challenge

Husk, 8 bytes S+s"S+s" Try it online! Basically Leo's original quine. It concatenates the string evaluated version of S+s to itself. So: "S+s" + "\"S+s\"" gives the original code.

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Japt, 12 bytes ÊÆgX *VpXÃr+ Loops through the range of integers 0 to n-1, calculates each term, and sums. Try it

posted 4y ago by Quintec‭

Answer
75%
+4 −0
Challenges "Hello, World!"

Perl 5 -E, 18 bytes say"Hello, World!"

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

Answer
75%
+4 −0
Meta Do you want any special tag styling or requirements?

Codidact allows you to define three special types of tags: topic tags: these are treated as ordinary tags in all respects except that they're styled differently so they stand out. You can see...

1 answer  ·  posted 4y ago by Monica Cellio‭  ·  last activity 4y ago by Razetime‭

Question discussion
75%
+4 −0
Meta Sandbox-specific Tags

Another approach, suggested by ArtOfCode in chat, is to create a close reason for "graduated" sandbox posts. When defining a close reason you can require a URL (this is what's used for duplicates)...

posted 4y ago by Monica Cellio‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Raku, 19 bytes (*Z*(*X**0..*)).sum Try it online! Is it concerning that my solution is over 30% asterisks? Explanation ( ).sum # Get the sum of *Z*( ) # The inp...

posted 4y ago by Jo King‭  ·  edited 4y ago by Jo King‭

Answer